mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
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). llvm-svn: 208962
This commit is contained in:
parent
a1a9dc1522
commit
4736478963
@ -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>;
|
||||
|
Loading…
Reference in New Issue
Block a user