[llvm] wasm: recognize `any_true` and `all_true` (PR #155885)

Folkert de Vries via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 7 08:39:59 PST 2026


================
@@ -2728,6 +2729,70 @@ WebAssemblyTargetLowering::LowerVECTOR_SHUFFLE(SDValue Op,
   return DAG.getNode(WebAssemblyISD::SHUFFLE, DL, Op.getValueType(), Ops);
 }
 
+static SDValue emitShuffleReduceTree(SelectionDAG &DAG, const SDLoc &DL,
----------------
folkertdev wrote:

Yup, found it. It does prefer the non-shuffle version in more cases, but that is probably actually better in practice given that shuffles are expensive.

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


More information about the llvm-commits mailing list