[RISCV] Remove 'not FeatureStdExtC' from Zcmp predicate.
authorCraig Topper <craig.topper@sifive.com>
Mon, 17 Jul 2023 16:12:14 +0000 (09:12 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 17 Jul 2023 16:12:54 +0000 (09:12 -0700)
C is only incompatible if D is also enabled. This already checked
in RISCVISAInfo.cpp.

llvm/lib/Target/RISCV/RISCVFeatures.td

index 2ca88b1..db8498c 100644 (file)
@@ -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