[llvm] 703cdcd - [RISCV] Remove 'not FeatureStdExtC' from Zcmp predicate.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 09:13:13 PDT 2023


Author: Craig Topper
Date: 2023-07-17T09:12:54-07:00
New Revision: 703cdcd2db0c4d320bca56a1a2d0abcc00a4a6e0

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

LOG: [RISCV] Remove 'not FeatureStdExtC' from Zcmp predicate.

C is only incompatible if D is also enabled. This already checked
in RISCVISAInfo.cpp.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVFeatures.td b/llvm/lib/Target/RISCV/RISCVFeatures.td
index 2ca88b1c1a0634..db8498c0357088 100644
--- a/llvm/lib/Target/RISCV/RISCVFeatures.td
+++ b/llvm/lib/Target/RISCV/RISCVFeatures.td
@@ -363,7 +363,7 @@ def FeatureStdExtZcmp
                        "'Zcmp' (sequenced instuctions for code-size reduction)",
                        [FeatureStdExtZca]>;
 def HasStdExtZcmp : Predicate<"Subtarget->hasStdExtZcmp() && !Subtarget->hasStdExtC()">,
-                               AssemblerPredicate<(all_of FeatureStdExtZcmp, (not FeatureStdExtC)),
+                               AssemblerPredicate<(all_of FeatureStdExtZcmp),
                                "'Zcmp' (sequenced instuctions for code-size reduction)">;
 
 def FeatureStdExtZcmt


        


More information about the llvm-commits mailing list