[llvm] [DAGCombiner][VP] Add DAGCombine for VP_MUL (PR #80105)

Shao-Ce SUN via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 00:38:07 PST 2024


================
@@ -4404,20 +4408,21 @@ SDValue DAGCombiner::visitMUL(SDNode *N) {
   if (N1IsConst && ConstValue1.isOne())
     return N0;
 
-  if (SDValue NewSel = foldBinOpIntoSelect(N))
-    return NewSel;
+  if (!IsVP)
+    if (SDValue NewSel = foldBinOpIntoSelect(N))
----------------
sunshaoce wrote:

This is equivalent to no change because of `!IsVP` here.

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


More information about the llvm-commits mailing list