[llvm] [VPlan] Use DL index type consistently for GEPs (PR #169396)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 21:13:15 PST 2025
================
@@ -2593,22 +2607,15 @@ void VPWidenGEPRecipe::printRecipe(raw_ostream &O, const Twine &Indent,
}
#endif
-static Type *getGEPIndexTy(bool IsScalable, bool IsReverse, bool IsUnitStride,
- unsigned CurrentPart, IRBuilderBase &Builder) {
- // Use i32 for the gep index type when the value is constant,
- // or query DataLayout for a more suitable index type otherwise.
+static Type *getGEPIndexTy(IRBuilderBase &Builder) {
----------------
lukel97 wrote:
This function is simple enough now that I think we can just inline it at the call sites
https://github.com/llvm/llvm-project/pull/169396
More information about the llvm-commits
mailing list