mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
Calls don't really change the stack pointer.
Even if a call instruction has %SP<imp-def> operands, it doesn't change the value of the stack pointer. llvm-svn: 151104
This commit is contained in:
parent
15c7539a46
commit
f585983be9
@ -1400,7 +1400,8 @@ bool ARMBaseInstrInfo::isSchedulingBoundary(const MachineInstr *MI,
|
||||
// saves compile time, because it doesn't require every single
|
||||
// stack slot reference to depend on the instruction that does the
|
||||
// modification.
|
||||
if (MI->definesRegister(ARM::SP))
|
||||
// Calls don't actually change the stack pointer, even if they have imp-defs.
|
||||
if (!MI->isCall() && MI->definesRegister(ARM::SP))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user