Revert "[X86] Create extra prolog/epilog for stack realignment [part 2]"

This reverts commit 614c63bec6.
This commit is contained in:
Luo, Yuanke 2023-03-21 20:12:35 +08:00
parent c8af0d3cea
commit 3e2d4e85d3
2 changed files with 1 additions and 2 deletions

View 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;

View 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 {