[NFC][PowerPC] Remove the repeated definition for some InstAlias of mtspr/mfspr
authorKang Zhang <shkzhang@cn.ibm.com>
Sun, 8 Mar 2020 06:02:55 +0000 (06:02 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Sun, 8 Mar 2020 06:02:55 +0000 (06:02 +0000)
Summary:
Below InstAlias have been redeclaration, this patch is to remove them.
mtdec/mfdec   mtsdr1/mfsdr1     mtsrr0/mfsrr0    mtsrr1/mfsrr1

llvm/lib/Target/PowerPC/PPCInstrInfo.td

index 844ba72..9edf0ae 100644 (file)
@@ -4627,19 +4627,8 @@ foreach SPRG = 4-7 in {
 
 def : InstAlias<"mtasr $RS", (MTSPR 280, gprc:$RS)>;
 
-def : InstAlias<"mfdec $RT", (MFSPR gprc:$RT, 22)>;
-def : InstAlias<"mtdec $RT", (MTSPR 22, gprc:$RT)>;
-
 def : InstAlias<"mfpvr $RT", (MFSPR gprc:$RT, 287)>;
 
-def : InstAlias<"mfsdr1 $RT", (MFSPR gprc:$RT, 25)>;
-def : InstAlias<"mtsdr1 $RT", (MTSPR 25, gprc:$RT)>;
-
-def : InstAlias<"mfsrr0 $RT", (MFSPR gprc:$RT, 26)>;
-def : InstAlias<"mfsrr1 $RT", (MFSPR gprc:$RT, 27)>;
-def : InstAlias<"mtsrr0 $RT", (MTSPR 26, gprc:$RT)>;
-def : InstAlias<"mtsrr1 $RT", (MTSPR 27, gprc:$RT)>;
-
 def : InstAlias<"tlbie $RB", (TLBIE R0, gprc:$RB)>;
 
 def : InstAlias<"tlbrehi $RS, $A", (TLBRE2 gprc:$RS, gprc:$A, 0)>,