Commit f4c7cc2
committed
[LV] Use more precise isPredicatedInst in legacy CCH (NFC).
Legal::isMaskRequired may be overly conservative and also return true
when no mask is actually required.
Use isPredicatedInst from the cost model instead, which fixes a
cost-model divergence between legacy and VPlan cost model where the
legacy cost model incorrectly assumed some loads were predicated.
Fixes llvm#148431.1 parent f168175 commit f4c7cc2
File tree
2 files changed
+333
-2
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize/AArch64
2 files changed
+333
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6289 | 6289 | | |
6290 | 6290 | | |
6291 | 6291 | | |
6292 | | - | |
6293 | | - | |
| 6292 | + | |
| 6293 | + | |
6294 | 6294 | | |
6295 | 6295 | | |
6296 | 6296 | | |
| |||
0 commit comments