[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 13 10:01:06 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.38 -> 1.39
X86ISelPattern.cpp updated: 1.195 -> 1.196
---
Log message:
Enable X86 support for savestack/restorestack
---
Diffs of the changes: (+2 -1)
X86ISelLowering.cpp | 1 +
X86ISelPattern.cpp | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.38 llvm/lib/Target/X86/X86ISelLowering.cpp:1.39
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.38 Thu Jan 12 20:42:53 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Fri Jan 13 12:00:54 2006
@@ -39,6 +39,7 @@
setSetCCResultType(MVT::i8);
setSetCCResultContents(ZeroOrOneSetCCResult);
setShiftAmountFlavor(Mask); // shl X, 32 == shl X, 0
+ setStackPointerRegisterToSaveRestore(X86::ESP);
// Set up the register classes.
addRegisterClass(MVT::i8, X86::R8RegisterClass);
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.195 llvm/lib/Target/X86/X86ISelPattern.cpp:1.196
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.195 Thu Jan 12 16:54:21 2006
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Fri Jan 13 12:00:54 2006
@@ -1229,7 +1229,7 @@
cast<RegisterSDNode>(Node->getOperand(1))->getReg() :
cast<RegisterSDNode>(Node)->getReg();
// Just use the specified register as our input if we can.
- if (MRegisterInfo::isVirtualRegister(Reg) || Reg == X86::ESP)
+ if (MRegisterInfo::isVirtualRegister(Reg))
return Reg;
}
More information about the llvm-commits
mailing list