Add a function removePointerBase that returns, essentially, S - getPointerBase(S). Use it in getMinusSCEV instead of multiplying a pointer by -1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Differential D105503
[ScalarEvolution] Make sure getMinusSCEV doesn't negate pointers. efriedma on Jul 6 2021, 11:00 AM. Authored by
Details Add a function removePointerBase that returns, essentially, S - getPointerBase(S). Use it in getMinusSCEV instead of multiplying a pointer by -1.
Diff Detail
|