projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[X86] Fix emitPrologue() to make less assumptions about pushes
[oota-llvm.git]
/
lib
/
Target
/
X86
/
X86FrameLowering.cpp
diff --git
a/lib/Target/X86/X86FrameLowering.cpp
b/lib/Target/X86/X86FrameLowering.cpp
index 2a35c4cf31f39c12d28522864d85f13c326262a6..edbe7d0894a0805e8cbb2ebaaea2b1888b15a3c0 100644
(file)
--- a/
lib/Target/X86/X86FrameLowering.cpp
+++ b/
lib/Target/X86/X86FrameLowering.cpp
@@
-794,6
+794,7
@@
void X86FrameLowering::emitPrologue(MachineFunction &MF,
int StackOffset = 2 * stackGrowth;
while (MBBI != MBB.end() &&
+ MBBI->getFlag(MachineInstr::FrameSetup) &&
(MBBI->getOpcode() == X86::PUSH32r ||
MBBI->getOpcode() == X86::PUSH64r)) {
PushedRegs = true;