[clang] [llvm] [LFI][X86] Add X86 LFI target and system instruction rewrites (PR #189569)
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Thu May 21 09:53:52 PDT 2026
================
@@ -2974,6 +2974,11 @@ bool X86TargetLowering::isEligibleForSiblingCallOpt(
if (IsCalleeWin64 != IsCallerWin64)
return false;
+ // Do not optimize vararg calls with 6 arguments for LFI since LFI reserves
+ // %r11, meaning there will not be enough registers available.
+ if (Subtarget.isLFI() && ArgLocs.size() > 5)
+ return false;
----------------
nickdesaulniers wrote:
Do you have test case coverage of this?
https://github.com/llvm/llvm-project/pull/189569
More information about the cfe-commits
mailing list