From 703cdcd2db0c4d320bca56a1a2d0abcc00a4a6e0 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 17 Jul 2023 09:12:14 -0700 Subject: [PATCH] [RISCV] Remove 'not FeatureStdExtC' from Zcmp predicate. C is only incompatible if D is also enabled. This already checked in RISCVISAInfo.cpp. --- llvm/lib/Target/RISCV/RISCVFeatures.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/RISCV/RISCVFeatures.td b/llvm/lib/Target/RISCV/RISCVFeatures.td index 2ca88b1c1a06..db8498c03570 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