Commit 18d3a5d
authored
[LegalizeVectorTypes] When widening don't check for libcalls if promoted (#111297)
When widening some FP ops, LegalizeVectorTypes will check to see if the
widened op may be scalarized and then turned into a bunch of libcalls,
and if so unroll early to avoid unnecessary libcalls of the padded undef
elements.
It checks if the widened op is legal or custom to see if it will be
scalarized, but promoted ops will also avoid scalarization.
This relaxes the check to account for this which fixes some illegal
vector types on RISC-V from being scalarized when they could be widened.1 parent 5a9e93f commit 18d3a5d
File tree
2 files changed
+95
-1578
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/RISCV/rvv
2 files changed
+95
-1578
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4441 | 4441 | | |
4442 | 4442 | | |
4443 | 4443 | | |
4444 | | - | |
| 4444 | + | |
4445 | 4445 | | |
4446 | 4446 | | |
4447 | 4447 | | |
| |||
0 commit comments