[llvm] [LAA] Use SCEVPtrToAddr in tryToCreateDiffChecks. (PR #178861)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 07:31:13 PST 2026


================

----------------
fhahn wrote:

This is because previously we did not create SCEVPtrToIntExprs for non-integral pointers but SCEVCouldNot Compute. Now we create PtrToAddr to compute the pointer difference, and use the lightweigth check variant. I think that should be fine, unless I am missing some constraint about  `ptrtoaddr` interacting with  non-integral pointers

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


More information about the llvm-commits mailing list