Commit 459661e
committed
[LoopVectorize] In LoopVectorize start using getSymbolicMaxBackedgeTakenCount
LoopVectorizationLegality currently only treats a loop as legal
to vectorise if PredicatedScalarEvolution::getBackedgeTakenCount
returns a valid SCEV, or more precisely that the loop must have
an exact backedge taken count. Therefore, in LoopVectorize.cpp
we can safely replace all calls to getBackedgeTakenCount with
calls to getSymbolicMaxBackedgeTakenCount, since the result is
the same.
This also helps prepare the loop vectoriser for PR #88385.1 parent 0df8880 commit 459661e
2 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4075 | 4075 | | |
4076 | 4076 | | |
4077 | 4077 | | |
4078 | | - | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
4079 | 4084 | | |
4080 | 4085 | | |
4081 | 4086 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
883 | | - | |
884 | | - | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
885 | 890 | | |
886 | | - | |
887 | | - | |
| 891 | + | |
| 892 | + | |
888 | 893 | | |
889 | 894 | | |
890 | 895 | | |
| |||
0 commit comments