Revert "[X86] Create extra prolog/epilog for stack realignment [part 2]"
authorLuo, Yuanke <yuanke.luo@intel.com>
Tue, 21 Mar 2023 12:12:35 +0000 (20:12 +0800)
committerLuo, Yuanke <yuanke.luo@intel.com>
Tue, 21 Mar 2023 12:12:35 +0000 (20:12 +0800)
This reverts commit 614c63bec6d67cbfdc17b50e443ff769a28c18d0.

llvm/lib/Target/X86/X86ArgumentStackSlotRebase.cpp
llvm/test/CodeGen/X86/i386-baseptr.ll

index bf60791..ef3751e 100644 (file)
@@ -114,7 +114,7 @@ bool X86ArgumentStackSlotPass::runOnMachineFunction(MachineFunction &MF) {
   if (F.hasFnAttribute(Attribute::Naked))
     return false;
   // Only support Linux
-  if (!STI.isTargetLinux() && !STI.isTargetELF())
+  if (!STI.isTargetLinux())
     return false;
   if (!TRI->hasBasePointer(MF))
     return false;
index df921f2..cb8d849 100644 (file)
@@ -1,6 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
 ; RUN: llc -mtriple=i386-pc-linux -stackrealign < %s | FileCheck %s
-; RUN: llc -mtriple=i386-pc-none-elf -stackrealign < %s | FileCheck %s
 
 declare i32 @helper() nounwind
 define void @base() #0 {