[llvm] [SCEV] Do not represent ptrtoint as ptrtoaddr (PR #219156)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 02:35:40 PDT 2026
================
@@ -959,7 +959,7 @@ void SimplifyIndvar::simplifyUsers(PHINode *CurrIV, IVVisitor *V) {
// Go further for the bitcast 'prtoint ptr to i64' or if the cast is done
// by truncation
- if ((isa<PtrToIntInst>(UseInst)) || (isa<TruncInst>(UseInst)))
+ if (isa<PtrToIntInst, PtrToAddrInst, TruncInst>(UseInst))
----------------
nikic wrote:
This is needed for the pr59633.ll test.
https://github.com/llvm/llvm-project/pull/219156
More information about the llvm-commits
mailing list