Commit 120c5f1
committed
[DAGCombiner] Don't fold zext_vector_inreg/sext_vector_inreg(undef) to undef. Fold to 0.
zext_vector_inreg needs to produces 0s in the extended bits and
sext_vector_inreg needs to produce upper bits that are all the
same. So we should fold them to a 0 vector instead of undef.
Fixes PR46585.1 parent 21d8f66 commit 120c5f1
File tree
2 files changed
+5
-3
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/X86
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11086 | 11086 | | |
11087 | 11087 | | |
11088 | 11088 | | |
| 11089 | + | |
11089 | 11090 | | |
11090 | | - | |
| 11091 | + | |
11091 | 11092 | | |
11092 | 11093 | | |
11093 | 11094 | | |
| |||
11102 | 11103 | | |
11103 | 11104 | | |
11104 | 11105 | | |
| 11106 | + | |
11105 | 11107 | | |
11106 | | - | |
| 11108 | + | |
11107 | 11109 | | |
11108 | 11110 | | |
11109 | 11111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments