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
Paths
| Differential D105503
[ScalarEvolution] Make sure getMinusSCEV doesn't negate pointers. ClosedPublic Authored by efriedma on Jul 6 2021, 11:00 AM.
Details Summary Add a function removePointerBase that returns, essentially, S - getPointerBase(S). Use it in getMinusSCEV instead of multiplying a pointer by -1.
Diff Detail
Event Timelineefriedma added a child revision: D105510: [ScalarEvolution] Strictly enforce pointer/int type rules..Jul 6 2021, 1:27 PM
This revision is now accepted and ready to land.Jul 7 2021, 1:20 AM Closed by commit rGf5603aa050ce: [ScalarEvolution] Make sure getMinusSCEV doesn't negate pointers. (authored by efriedma). · Explain WhyJul 7 2021, 10:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 356993 llvm/lib/Analysis/ScalarEvolution.cpp
|
I guess you forgot to modify ops somewhere.