[clang] [llvm] [X86][APX] Emit SetZUCC instead of legacy setcc when ZU is enabled (PR #173965)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 3 05:44:45 PST 2026


================
@@ -1434,6 +1434,10 @@ bool X86FastISel::X86FastEmitCompare(const Value *Op0, const Value *Op1, EVT VT,
   return true;
 }
 
+#define GET_SETCC                                                              \
+  ((Subtarget->hasZU() && !Subtarget->preferSetCC()) ? X86::SETZUCCr           \
+                                                     : X86::SETCCr)
----------------
phoebewang wrote:

```suggestion
  ((Subtarget->hasZU() && Subtarget->preferSetCC()) ? X86::SETCCr              \
                                                    : X86::SETZUCCr)
```

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


More information about the cfe-commits mailing list