Commit 4d3148d
authored
[LV][EVL] Fix the check for legality of folding with EVL. (#125678)
The current legality check for folding with EVL has incomplete
verification for VF.
This patch fixes the VF check, ensuring that tail folding with EVL is
enabled only when a scalable VF is available. This allows loops that
prefer tail folding with EVL but cannot use scalable VF vectorization to
still be vectorized using a fixed VF, rather than abandoning
vectorization entirely.1 parent 99099cd commit 4d3148d
File tree
3 files changed
+343
-84
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize/RISCV
3 files changed
+343
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
1460 | 1461 | | |
1461 | 1462 | | |
1462 | 1463 | | |
| |||
4109 | 4110 | | |
4110 | 4111 | | |
4111 | 4112 | | |
4112 | | - | |
| 4113 | + | |
| 4114 | + | |
4113 | 4115 | | |
4114 | 4116 | | |
4115 | 4117 | | |
| |||
4120 | 4122 | | |
4121 | 4123 | | |
4122 | 4124 | | |
4123 | | - | |
4124 | | - | |
| 4125 | + | |
4125 | 4126 | | |
4126 | 4127 | | |
4127 | 4128 | | |
| |||
0 commit comments