[llvm] [ValueType] Add widenIntegerElementType method (PR #187816)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 09:09:18 PDT 2026


================
@@ -12016,13 +12015,10 @@ bool TargetLowering::expandMULO(SDNode *Node, SDValue &Result,
     }
   }
 
-  EVT WideVT = EVT::getIntegerVT(*DAG.getContext(), VT.getScalarSizeInBits() * 2);
-  if (VT.isVector())
-    WideVT =
-        EVT::getVectorVT(*DAG.getContext(), WideVT, VT.getVectorElementCount());
-
-  SDValue BottomHalf;
   SDValue TopHalf;
+  SDValue BottomHalf;
----------------
RKSimon wrote:

(pedantic) Move the BottomHalf back above TopHalf - to reduce differences in git blame.

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


More information about the llvm-commits mailing list