================ @@ -141,9 +141,38 @@ class RISCVMachineFunctionInfo : public MachineFunctionInfo { // We cannot use fixed locations for the callee saved spill slots if the // function uses a varargs save area. // TODO: Use a separate placement for vararg registers to enable Zcmp. - return MF.getSubtarget<RISCVSubtarget>().hasStdExtZcmp() && - !MF.getTarget().Options.DisableFramePointerElim(MF) && - VarArgsSaveSize == 0; + if (VarArgsSaveSize != 0) ---------------- lenary wrote:
Yeah, sure. 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