[clang] [llvm] [X86][APX] Emit SetZUCC instead of legacy setcc when ZU is enabled (PR #173965)
Feng Zou via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 3 17:08:54 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)
----------------
fzou1 wrote:
Right. Updated as `SETCCr` is the instruction likely to be emitted. The condition of emitting SETCCr is `!Subtarget->hasZU() || Subtarget->preferSetCC()` (when ZU is not enabled or preferSetCC tuning is set).
https://github.com/llvm/llvm-project/pull/173965
More information about the cfe-commits
mailing list