[llvm] [SCEV] Expose getGEPExpr without needing to pass GEPOperator* (NFC) (PR #164487)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 22 01:56:40 PDT 2025
================
@@ -3793,7 +3792,16 @@ ScalarEvolution::getGEPExpr(GEPOperator *GEP,
if (NW.hasNoUnsignedWrap())
OffsetWrap = setFlags(OffsetWrap, SCEV::FlagNUW);
- Type *CurTy = GEP->getType();
+ return getGEPExpr(BaseExpr, IndexExprs, GEP->getSourceElementType(),
+ OffsetWrap);
+}
+
+const SCEV *
+ScalarEvolution::getGEPExpr(const SCEV *BaseExpr,
+ const SmallVectorImpl<const SCEV *> &IndexExprs,
----------------
fhahn wrote:
Done thanks
https://github.com/llvm/llvm-project/pull/164487
More information about the llvm-commits
mailing list