[llvm] [polly] [SCEV] Use SCEVPtrToAddr instead of SCEVPtrToInt in SCEV. (PR #180244)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 07:42:33 PST 2026
================
@@ -1450,7 +1444,21 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
Value *SCEVExpander::visitPtrToAddrExpr(const SCEVPtrToAddrExpr *S) {
Value *V = expand(S->getOperand());
- return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToAddr,
+ Type *Ty = S->getType();
+
+ // ptrtoaddr and ptrtoint produce the same value, so try to reuse either.
----------------
fhahn wrote:
updated, thanks
https://github.com/llvm/llvm-project/pull/180244
More information about the llvm-commits
mailing list