This lifts two TODOs from this function, allowing us to prove
no-overflow whether it happens through max int (up) or through
min int (down) for both and and sub.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D148618
[SCEV] Support sub in and negative constants willNotOverflow ClosedPublic Authored by mkazantsev on Apr 18 2023, 1:51 AM.
Details Summary This lifts two TODOs from this function, allowing us to prove
Diff Detail
Event Timelinemkazantsev added a child revision: D148621: [SCEV] Support negative constant in willNotOverflow.Apr 18 2023, 2:27 AM mkazantsev retitled this revision from [SCEV] Support sub in willNotOverflow to [SCEV] Support sub in and negative constants willNotOverflow. Comment ActionsBug fixed, logic expanded. This revision is now accepted and ready to land.Apr 25 2023, 12:16 AM
This revision was landed with ongoing or failed builds.Apr 25 2023, 3:08 AM Closed by commit rGab07cbe4377a: [SCEV] Support sub in and negative constants willNotOverflow (authored by mkazantsev). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 516728 llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
|
You don't need this else after return