summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-28 01:19:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-28 01:19:48 +0000
commitedfc5b2204cd8de2a2c7946952220545a32ded2d (patch)
tree1d45bf3a497e34031d61e7fcb465f244ba8a42be /llvm/lib
parent25a00a63eb4e4485ef26c0376a965eb34979f3d9 (diff)
downloadbcm5719-llvm-edfc5b2204cd8de2a2c7946952220545a32ded2d.tar.gz
bcm5719-llvm-edfc5b2204cd8de2a2c7946952220545a32ded2d.zip
Pessimisively assume ADJCALLSTACKDOWN / ADJCALLSTACKUP (which becomes sub / add) clobbers EFLAGS.
llvm-svn: 42426
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td
index 126677d4074..88f3b09c8e5 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.td
+++ b/llvm/lib/Target/X86/X86InstrInfo.td
@@ -261,7 +261,9 @@ def extloadi32i16 : PatFrag<(ops node:$ptr), (i32 (extloadi16 node:$ptr))>;
// ADJCALLSTACKDOWN/UP implicitly use/def ESP because they may be expanded into
// a stack adjustment and the codegen must know that they may modify the stack
// pointer before prolog-epilog rewriting occurs.
-let Defs = [ESP], Uses = [ESP] in {
+// Pessimisively assume ADJCALLSTACKDOWN / ADJCALLSTACKUP will become sub / add
+// which can clobber EFLAGS.
+let Defs = [ESP, EFLAGS], Uses = [ESP] in {
def ADJCALLSTACKDOWN : I<0, Pseudo, (outs), (ins i32imm:$amt), "#ADJCALLSTACKDOWN",
[(X86callseq_start imm:$amt)]>;
def ADJCALLSTACKUP : I<0, Pseudo, (outs), (ins i32imm:$amt1, i32imm:$amt2),
OpenPOWER on IntegriCloud