summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-08-17 21:06:01 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-08-17 21:06:01 +0000
commite9df15e65c28f13287c7fe69f0c5dafe2e8fa48b (patch)
treedea386c8dff2bcc071fd0c0cf56f102da6c1f759
parentd7343ddce500c8043a58dd50cac6127ba7d9d9a3 (diff)
downloadllvm-e9df15e65c28f13287c7fe69f0c5dafe2e8fa48b.tar.gz
llvm-e9df15e65c28f13287c7fe69f0c5dafe2e8fa48b.tar.bz2
llvm-e9df15e65c28f13287c7fe69f0c5dafe2e8fa48b.tar.xz
Enable more win64 calls folding opportunities.
Patch by Cameron Esfahani! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111288 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp
index 58508e6b7b..ed7ca4d393 100644
--- a/lib/Target/X86/X86InstrInfo.cpp
+++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -235,6 +235,7 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
{ X86::BT64ri8, X86::BT64mi8, 1, 0 },
{ X86::CALL32r, X86::CALL32m, 1, 0 },
{ X86::CALL64r, X86::CALL64m, 1, 0 },
+ { X86::WINCALL64r, X86::WINCALL64m, 1, 0 },
{ X86::CMP16ri, X86::CMP16mi, 1, 0 },
{ X86::CMP16ri8, X86::CMP16mi8, 1, 0 },
{ X86::CMP16rr, X86::CMP16mr, 1, 0 },
@@ -304,6 +305,7 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
{ X86::SETSr, X86::SETSm, 0, 0 },
{ X86::TAILJMPr, X86::TAILJMPm, 1, 0 },
{ X86::TAILJMPr64, X86::TAILJMPm64, 1, 0 },
+ { X86::WINTAILJMPr64,X86::WINTAILJMPm64, 1, 0 },
{ X86::TEST16ri, X86::TEST16mi, 1, 0 },
{ X86::TEST32ri, X86::TEST32mi, 1, 0 },
{ X86::TEST64ri32, X86::TEST64mi32, 1, 0 },