Commit 964c771
committed
[SLP]Fix the minbitwidth analysis for slternate opcodes
If the laternate operation is more stricter than the main operation, we
cannot rely on the analysis of the main operation. In such case, better
to avoid doing the analysis at all, since it may affect the overall
result and lead to incorrect optimization
Fixes #1658781 parent d310693 commit 964c771
File tree
2 files changed
+27
-8
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+27
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22134 | 22134 | | |
22135 | 22135 | | |
22136 | 22136 | | |
| 22137 | + | |
| 22138 | + | |
| 22139 | + | |
| 22140 | + | |
| 22141 | + | |
| 22142 | + | |
| 22143 | + | |
| 22144 | + | |
| 22145 | + | |
| 22146 | + | |
| 22147 | + | |
| 22148 | + | |
| 22149 | + | |
| 22150 | + | |
| 22151 | + | |
| 22152 | + | |
| 22153 | + | |
| 22154 | + | |
| 22155 | + | |
| 22156 | + | |
| 22157 | + | |
22137 | 22158 | | |
22138 | 22159 | | |
22139 | 22160 | | |
| |||
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
0 commit comments