[llvm] [ConstantTime][LLVM] Add llvm.ct.select intrinsic with generic SelectionDAG lowering (PR #166702)
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 01:49:20 PST 2026
================
@@ -484,6 +484,8 @@ namespace {
SDValue visitCTTZ_ZERO_UNDEF(SDNode *N);
SDValue visitCTPOP(SDNode *N);
SDValue visitSELECT(SDNode *N);
+ // visit CTSELECT Node
+ SDValue visitConstantTimeSelect(SDNode *N);
----------------
statham-arm wrote:
Yes, that seems sensible to me too. It provides a hint to someone seeing `CTPOP` and `CT_SELECT` together that they might not mean the same thing, and also it keeps the constant-time prefix short.
https://github.com/llvm/llvm-project/pull/166702
More information about the llvm-commits
mailing list