aboutsummaryrefslogtreecommitdiffstats
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
commit037364a39b74789cb84f9f721f2a7f69be46df92 (patch)
treeefd24ef85e037527543f191f0f640af4c348fc15
parent0c81a52b0e13160103f3da0303f5d23a1551ee26 (diff)
downloadexternal_llvm-037364a39b74789cb84f9f721f2a7f69be46df92.zip
external_llvm-037364a39b74789cb84f9f721f2a7f69be46df92.tar.gz
external_llvm-037364a39b74789cb84f9f721f2a7f69be46df92.tar.bz2
Pessimisively assume ADJCALLSTACKDOWN / ADJCALLSTACKUP (which becomes sub / add) clobbers EFLAGS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42426 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 126677d..88f3b09 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/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),