[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 Nov 7 06:24:53 PST 2025


================
@@ -476,8 +480,8 @@ class LLVM_ABI TargetLoweringBase {
   MachineMemOperand::Flags
   getVPIntrinsicMemOperandFlags(const VPIntrinsic &VPIntrin) const;
 
-  virtual bool isSelectSupported(SelectSupportKind /*kind*/) const {
-    return true;
+  virtual bool isSelectSupported(SelectSupportKind kind) const {
+    return kind != CtSelect;
----------------
statham-arm wrote:

Why is this not checking for all three of the new values you added? It looks as if will assume by default that every target supports `ScalarCondVectorValCtSelect` and `VectorMaskValCtSelect`.

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


More information about the llvm-commits mailing list