Commit a88498f
committed
[SLP]Skip buildvector tree, if all scalars are used externally and remain scalar
If the buildvector is going to be vector with threshold cost < 0 and all
buildvector scalars are externally used and remain scalar, such a tree
should not be vectorized, it may lead to a compiler hang because same
scalars remain in the function and will be vectorized once again.
Fixes #1726091 parent ac6afd8 commit a88498f
File tree
2 files changed
+491
-0
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/RISCV
2 files changed
+491
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15617 | 15617 | | |
15618 | 15618 | | |
15619 | 15619 | | |
| 15620 | + | |
| 15621 | + | |
| 15622 | + | |
| 15623 | + | |
| 15624 | + | |
| 15625 | + | |
| 15626 | + | |
| 15627 | + | |
| 15628 | + | |
| 15629 | + | |
| 15630 | + | |
15620 | 15631 | | |
15621 | 15632 | | |
15622 | 15633 | | |
| |||
0 commit comments