Commit 01be82c
committed
[InstCombine] Handle scalable splats of constants in getMinimumFPType
We previously handled ConstantExpr scalable splats in 5d92979, but only fpexts.
ConstantExpr fpexts have since been removed, and simultaneously we didn't handle splats of constants that weren't extended.
This updates it to remove the fpext check and instead see if we can shrink the result of getSplatValue.
Note that the test case doesn't get completely folded away due to #1329221 parent 4b9c243 commit 01be82c
File tree
2 files changed
+8
-8
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1685 | 1685 | | |
1686 | 1686 | | |
1687 | 1687 | | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
1693 | 1694 | | |
1694 | 1695 | | |
1695 | 1696 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
0 commit comments