[llvm] [SelectionDAG] Add SelectionDAG::getTypeSize. NFC (PR #169764)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 27 01:49:05 PST 2025


================
@@ -2117,13 +2102,24 @@ SDValue SelectionDAG::getVScale(const SDLoc &DL, EVT VT, APInt MulImm,
   return getNode(ISD::VSCALE, DL, VT, getConstant(MulImm, DL, VT));
 }
 
+template <typename Ty>
+static SDValue getFixedOrScalableQuantity(SelectionDAG &DAG, const SDLoc &DL,
+                                          EVT VT, Ty X, bool ConstantFold) {
----------------
lukel97 wrote:

Good point. I guess it was originally meant to be plumbed through to getVScale but was forgotten? In any case it doesn't look like anything ever sets ConstantFold to false. It defaults to true. I've gone ahead and just removed it in 5c13c4abc950

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


More information about the llvm-commits mailing list