summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86InstrInfo.td
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-18 08:13:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-18 08:13:07 +0000
commit359e9371b9537ddf60229c8c219c2b51b8574a08 (patch)
treea52eece882f70312d43ef48d41ee95ad67674cc6 /lib/Target/X86/X86InstrInfo.td
parent8b0fcf38ef08874af8c718520a33554d73f7bd4f (diff)
downloadllvm-359e9371b9537ddf60229c8c219c2b51b8574a08.tar.gz
llvm-359e9371b9537ddf60229c8c219c2b51b8574a08.tar.bz2
llvm-359e9371b9537ddf60229c8c219c2b51b8574a08.tar.xz
XOR32rr, etc. are not AsCheapAsMove, but MOV32ri, etc. are.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.td')
-rw-r--r--lib/Target/X86/X86InstrInfo.td7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 2630834b6a..646655ef49 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -578,7 +578,7 @@ def MOV16rr : I<0x89, MRMDestReg, (outs GR16:$dst), (ins GR16:$src),
def MOV32rr : I<0x89, MRMDestReg, (outs GR32:$dst), (ins GR32:$src),
"mov{l}\t{$src, $dst|$dst, $src}", []>;
}
-let isReMaterializable = 1 in {
+let isReMaterializable = 1, isAsCheapAsAMove = 1 in {
def MOV8ri : Ii8 <0xB0, AddRegFrm, (outs GR8 :$dst), (ins i8imm :$src),
"mov{b}\t{$src, $dst|$dst, $src}",
[(set GR8:$dst, imm:$src)]>;
@@ -1312,8 +1312,7 @@ let isTwoAddress = 0 in {
} // isTwoAddress = 0
-let isAsCheapAsAMove = 1,
- isCommutable = 1 in { // X = XOR Y, Z --> X = XOR Z, Y
+let isCommutable = 1 in { // X = XOR Y, Z --> X = XOR Z, Y
def XOR8rr : I<0x30, MRMDestReg,
(outs GR8 :$dst), (ins GR8 :$src1, GR8 :$src2),
"xor{b}\t{$src2, $dst|$dst, $src2}",
@@ -1326,7 +1325,7 @@ let isAsCheapAsAMove = 1,
(outs GR32:$dst), (ins GR32:$src1, GR32:$src2),
"xor{l}\t{$src2, $dst|$dst, $src2}",
[(set GR32:$dst, (xor GR32:$src1, GR32:$src2))]>;
-} // isAsCheapAsAMove = 1, isCommutable = 1
+} // isCommutable = 1
def XOR8rm : I<0x32, MRMSrcMem ,
(outs GR8 :$dst), (ins GR8:$src1, i8mem :$src2),