[llvm] 3b8ec0f - [RISCV] Remove some unused Predicates from tablegen. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 18:28:14 PDT 2022


Author: Craig Topper
Date: 2022-09-21T18:26:43-07:00
New Revision: 3b8ec0fde5dfe4c9938b2885969a3ef8f41c5f9f

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

LOG: [RISCV] Remove some unused Predicates from tablegen. NFC

Specifically predicates for extensions that are subsets of other
extensions. These predicates should never be used. Should always
check the superset extension or the superset ORed with the sub extendsion.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCV.td b/llvm/lib/Target/RISCV/RISCV.td
index 22223912b019..5455aa632336 100644
--- a/llvm/lib/Target/RISCV/RISCV.td
+++ b/llvm/lib/Target/RISCV/RISCV.td
@@ -22,9 +22,6 @@ def HasStdExtM : Predicate<"Subtarget->hasStdExtM()">,
 def FeatureStdExtZmmul
     : SubtargetFeature<"zmmul", "HasStdExtZmmul", "true",
                        "'Zmmul' (Integer Multiplication)">;
-def HasStdExtZmmul : Predicate<"Subtarget->hasStdExtZmmul()">,
-                               AssemblerPredicate<(all_of FeatureStdExtZmmul),
-                               "'Zmmul' (Integer Multiplication)">;
 
 def HasStdExtMOrZmmul
     : Predicate<"Subtarget->hasStdExtM() || Subtarget->hasStdExtZmmul()">,
@@ -343,9 +340,6 @@ def FeatureStdExtZk
 def FeatureExtZca
     : SubtargetFeature<"experimental-zca", "HasStdExtZca", "true",
                        "'Zca' (part of the C extension, excluding compressed floating point loads/stores)">;
-def HasStdExtZca : Predicate<"Subtarget->hasStdExtZca()">,
-                           AssemblerPredicate<(all_of FeatureExtZca),
-                           "'Zca' (part of the C extension, excluding compressed floating point loads/stores)">;
 
 def HasStdExtCOrZca
     : Predicate<"Subtarget->hasStdExtC() || Subtarget->hasStdExtZca()">,


        


More information about the llvm-commits mailing list