[clang] 039d9aa - [RISCV] Remove redundant variable Log2LMUL from vset intrinsic. NFC (#76422)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 26 22:14:55 PST 2023


Author: Jim Lin
Date: 2023-12-27T14:14:50+08:00
New Revision: 039d9aa56e9432e119c4b62e575f74fcf3cacb82

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

LOG: [RISCV] Remove redundant variable Log2LMUL from vset intrinsic. NFC (#76422)

Added: 
    

Modified: 
    clang/include/clang/Basic/riscv_vector.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/riscv_vector.td b/clang/include/clang/Basic/riscv_vector.td
index f2dde7f540fb74..e7d78b03511fe9 100644
--- a/clang/include/clang/Basic/riscv_vector.td
+++ b/clang/include/clang/Basic/riscv_vector.td
@@ -2441,11 +2441,9 @@ let HasMasked = false, HasVL = false, IRName = "" in {
         return Builder.CreateInsertVector(ResultType, Ops[0], Ops[2], Ops[1]);
       }
       }] in {
-    let Log2LMUL = [0, 1, 2] in {
-      foreach dst_lmul = ["(LFixedLog2LMUL:1)", "(LFixedLog2LMUL:2)", "(LFixedLog2LMUL:3)"] in {
-        def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "v" # dst_lmul # "vKzv", "csilxfd">;
-        def : RVVBuiltin<"Uv" # dst_lmul # "Uv", dst_lmul # "Uv" # dst_lmul #"UvKzUv", "csil">;
-      }
+    foreach dst_lmul = ["(LFixedLog2LMUL:1)", "(LFixedLog2LMUL:2)", "(LFixedLog2LMUL:3)"] in {
+      def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "v" # dst_lmul # "vKzv", "csilxfd">;
+      def : RVVBuiltin<"Uv" # dst_lmul # "Uv", dst_lmul # "Uv" # dst_lmul #"UvKzUv", "csil">;
     }
     foreach nf = NFList in {
       defvar T = "(Tuple:" # nf # ")";


        


More information about the cfe-commits mailing list