[clang] [llvm] [RISCV] Xqccmp Code Generation (PR #128815)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 21:17:58 PST 2025


================
@@ -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


More information about the cfe-commits mailing list