[llvm] [AMDGPU] Add folding ISD::SELECT from vXiY into vZi32 with X * Y = Z * 32 (PR #173328)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 09:08:59 PDT 2026
================
@@ -12983,6 +13060,12 @@ SDValue DAGCombiner::visitSELECT(SDNode *N) {
if (SDValue R = combineSelectAsExtAnd(N0, N1, N2, DL, DAG))
return R;
+ if (SDValue R = widenIntVectorSelect(N, DAG, TLI, N0, N1, N2))
----------------
arsenm wrote:
Guard this under VT.isVector(), and remove the isScalar checks inside the function?
https://github.com/llvm/llvm-project/pull/173328
More information about the llvm-commits
mailing list