[llvm] b26abca - [RISCV][NFC] Replace redundant code with VLOpFrag

Lian Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 19:07:35 PDT 2022


Author: Lian Wang
Date: 2022-03-17T02:05:21Z
New Revision: b26abcad81e4fc3b9c232495cd9e4eac36e6a192

URL: https://github.com/llvm/llvm-project/commit/b26abcad81e4fc3b9c232495cd9e4eac36e6a192
DIFF: https://github.com/llvm/llvm-project/commit/b26abcad81e4fc3b9c232495cd9e4eac36e6a192.diff

LOG: [RISCV][NFC] Replace redundant code with VLOpFrag

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D121783

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index 3c8ed92cc4f89..ed3c29f2ae751 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -3357,7 +3357,7 @@ multiclass VPatNullaryV<string intrinsic, string instruction>
 multiclass VPatNullaryM<string intrinsic, string inst> {
   foreach mti = AllMasks in
     def : Pat<(mti.Mask (!cast<Intrinsic>(intrinsic)
-                        (XLenVT (VLOp (XLenVT (XLenVT GPR:$vl)))))),
+                        VLOpFrag)),
                         (!cast<Instruction>(inst#"_M_"#mti.BX)
                         GPR:$vl, mti.Log2SEW)>;
 }


        


More information about the llvm-commits mailing list