In some cases we can handle IV and iter count of different types. It's a typical situation
after IV have been widened. This patch adds support for such cases, when legal.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D88528
[IndVars] Support different types of ExitCount when optimizing exit conds ClosedPublic Authored by mkazantsev on Sep 29 2020, 10:09 PM.
Details Summary In some cases we can handle IV and iter count of different types. It's a typical situation
Diff Detail Event Timelinemkazantsev planned changes to this revision. mkazantsev added a parent revision: D88527: [IndVars] Replace checks with invariants if we cannot remove them. mkazantsev retitled this revision from [IndVars] Support different types to [IndVars] Support different types of ExitCount when optimizing exit conds. mkazantsev added a child revision: D91535: [IndVars] Use isLoopBackedgeGuardedByCond for last iteration check.Nov 16 2020, 5:45 AM This revision is now accepted and ready to land.Nov 18 2020, 12:48 AM Closed by commit rGf33118c61ce0: [IndVars] Support different types of ExitCount when optimizing exit conds (authored by mkazantsev). · Explain WhyNov 18 2020, 3:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 295175 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
|