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

Shao-Ce SUN via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 19:20:41 PST 2024


================
@@ -4356,11 +4357,13 @@ SDValue DAGCombiner::visitMULFIX(SDNode *N) {
   return SDValue();
 }
 
-SDValue DAGCombiner::visitMUL(SDNode *N) {
+template <class MatchContextClass> SDValue DAGCombiner::visitMUL(SDNode *N) {
   SDValue N0 = N->getOperand(0);
   SDValue N1 = N->getOperand(1);
   EVT VT = N0.getValueType();
   SDLoc DL(N);
+  bool IsVP = ISD::isVPOpcode(N->getOpcode());
----------------
sunshaoce wrote:

bool IsVP = N->isVPOpcode();

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


More information about the llvm-commits mailing list