[llvm] [X86][APX] Exclusively emit setzucc to avoid false dependency (PR #142092)

Feng Zou via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 20:48:36 PDT 2025


================
@@ -137,11 +137,14 @@ let Predicates = [HasCMOV, HasCF] in {
 }
 
 // SetCC instructions.
-let Uses = [EFLAGS], isCodeGenOnly = 1, ForceDisassemble = 1 in {
+let Uses = [EFLAGS], isCodeGenOnly = 1, ForceDisassemble = 1, Predicates = [NoNDD] in {
----------------
fzou1 wrote:

> `NoNDD`?
Yes. See the definition in X86InstrPredicates.td as below:
```
def HasNDD       : Predicate<"Subtarget->hasNDD()">;
def NoNDD        : Predicate<"!Subtarget->hasNDD()">;
```

https://github.com/llvm/llvm-project/pull/142092


More information about the llvm-commits mailing list