[llvm] r208962 - AArch64: disable printing of MOV -> MOVZ aliases

Tim Northover tnorthover at apple.com
Fri May 16 02:41:22 PDT 2014


Author: tnorthover
Date: Fri May 16 04:41:21 2014
New Revision: 208962

URL: http://llvm.org/viewvc/llvm-project?rev=208962&view=rev
Log:
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).

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.td

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.td?rev=208962&r1=208961&r2=208962&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.td (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.td Fri May 16 04:41:21 2014
@@ -4210,7 +4210,7 @@ defm movn64 : movalias_operand<"movn64",
 // 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>;





More information about the llvm-commits mailing list