Commit 9f72c98
[SLP]Check that operand of abs does not overflow before making it part of minbitwidth transformation
Need to check that the operand of the abs intrinsic can be safely
truncated before making it part of the minbitwidth transformation.
Fixes #112577
(cherry picked from commit 709abac)1 parent edded5a commit 9f72c98
File tree
2 files changed
+20
-2
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer
2 files changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15440 | 15440 | | |
15441 | 15441 | | |
15442 | 15442 | | |
| 15443 | + | |
| 15444 | + | |
| 15445 | + | |
| 15446 | + | |
| 15447 | + | |
| 15448 | + | |
| 15449 | + | |
| 15450 | + | |
| 15451 | + | |
| 15452 | + | |
| 15453 | + | |
| 15454 | + | |
| 15455 | + | |
| 15456 | + | |
15443 | 15457 | | |
15444 | 15458 | | |
15445 | 15459 | | |
| 15460 | + | |
| 15461 | + | |
15446 | 15462 | | |
15447 | 15463 | | |
15448 | 15464 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments