projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Align SP adjustment in function getSPAdjust
[oota-llvm.git]
/
lib
/
CodeGen
/
TargetInstrInfo.cpp
diff --git
a/lib/CodeGen/TargetInstrInfo.cpp
b/lib/CodeGen/TargetInstrInfo.cpp
index e321a49a4f08f8654913e8bfb1cf49b0af9e385b..740d0e46240afc9faed42d77418d1976e1316298 100644
(file)
--- a/
lib/CodeGen/TargetInstrInfo.cpp
+++ b/
lib/CodeGen/TargetInstrInfo.cpp
@@
-655,6
+655,7
@@
int TargetInstrInfo::getSPAdjust(const MachineInstr *MI) const {
return 0;
int SPAdj = MI->getOperand(0).getImm();
+ SPAdj = TFI->alignSPAdjust(SPAdj);
if ((!StackGrowsDown && MI->getOpcode() == FrameSetupOpcode) ||
(StackGrowsDown && MI->getOpcode() == FrameDestroyOpcode))