Commit 38e64b1
committed
[SLP]Fix minbiwidth analysis for gather nodes with SIToFP users
If the buildvector node has cast to float user, it cannot be considered as safe
for truncation, need to use the original bitwidth here.
Fixes llvm#1354101 parent db4ad46 commit 38e64b1
File tree
2 files changed
+5
-4
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19974 | 19974 | | |
19975 | 19975 | | |
19976 | 19976 | | |
| 19977 | + | |
19977 | 19978 | | |
19978 | | - | |
| 19979 | + | |
| 19980 | + | |
19979 | 19981 | | |
19980 | 19982 | | |
19981 | 19983 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
0 commit comments