summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-16 09:41:21 +0000
committerTim Northover <tnorthover@apple.com>2014-05-16 09:41:21 +0000
commit78a667d085427c8a1e3db9e235f98a09372bdd21 (patch)
tree88c51c68ed8ab2f118bfe9576813346796422542 /lib
parent4e15a3d1e74b9e22a6878a34749deb1774bbc5b2 (diff)
downloadllvm-78a667d085427c8a1e3db9e235f98a09372bdd21.tar.gz
llvm-78a667d085427c8a1e3db9e235f98a09372bdd21.tar.bz2
llvm-78a667d085427c8a1e3db9e235f98a09372bdd21.tar.xz
AArch64: disable printing of MOV -> MOVZ aliases
Actually, MOV sometimes is canonical, but for now this is a better approximation than what's there. This will be tested when the TableGen "should I print this Alias" heuristic is fixed (very soon). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/AArch64/AArch64InstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64InstrInfo.td b/lib/Target/AArch64/AArch64InstrInfo.td
index c4e43e1a8f..e1aa60adde 100644
--- a/lib/Target/AArch64/AArch64InstrInfo.td
+++ b/lib/Target/AArch64/AArch64InstrInfo.td
@@ -4210,7 +4210,7 @@ defm movn64 : movalias_operand<"movn64", "MOVN", "isOnlyMOVNImm", 64>;
// will need to be implemented. to allow it, as well as the more generally
// useful handling of non-register, non-constant operands.
class movalias<Instruction INST, RegisterClass GPR, Operand operand>
- : InstAlias<"mov $Rd, $FullImm", (INST GPR:$Rd, operand:$FullImm)>;
+ : InstAlias<"mov $Rd, $FullImm", (INST GPR:$Rd, operand:$FullImm), 0>;
def : movalias<MOVZwii, GPR32, movz32_movimm>;
def : movalias<MOVZxii, GPR64, movz64_movimm>;