================ @@ -120,12 +144,7 @@ bool RISCVPushPopOpt::runOnMachineFunction(MachineFunction &Fn) { // If Zcmp extension is not supported, abort. const RISCVSubtarget *Subtarget = &Fn.getSubtarget<RISCVSubtarget>(); - if (!Subtarget->hasStdExtZcmp()) - return false; - - // If frame pointer elimination has been disabled, abort to avoid breaking the - // ABI. - if (Fn.getTarget().Options.DisableFramePointerElim(Fn)) ---------------- topperc wrote:
Was this an unnecessary check? https://github.com/llvm/llvm-project/pull/128815 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits