Commit c4051b2
committed
[X86] Fold vbroadcast(bitcast(vbroadcast(src))) -> bitcast(vbroadcast(vbroadcast(src)))
If the inner broadcast scalar type is smaller/same width as the outer broadcast scalar type then we can broadcast using the same inner type directly. Works for vbroadcast_load as well.1 parent a3be778 commit c4051b2
File tree
3 files changed
+18
-4
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
3 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40291 | 40291 | | |
40292 | 40292 | | |
40293 | 40293 | | |
| 40294 | + | |
| 40295 | + | |
| 40296 | + | |
| 40297 | + | |
| 40298 | + | |
| 40299 | + | |
| 40300 | + | |
| 40301 | + | |
| 40302 | + | |
| 40303 | + | |
| 40304 | + | |
| 40305 | + | |
| 40306 | + | |
| 40307 | + | |
| 40308 | + | |
40294 | 40309 | | |
40295 | 40310 | | |
40296 | 40311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
0 commit comments