| Issue |
61650
|
| Summary |
[InstCombine Missing zext(shl(trunc)) fold
|
| Labels |
llvm:instcombine,
missed-optimization
|
| Assignees |
|
| Reporter |
nikic
|
From https://reviews.llvm.org/D146637:
```ll
define i32 @src(i32 %a) {
%trunc = trunc i32 %a to i16
%shl = shl i16 %trunc, 8
%ext = zext i16 %shl to i32
ret i32 %ext
}
define i32 @tgt(i32 %a) {
%shl = shl i32 %a, 8
%and = and i32 %shl, 65280
ret i32 %and
}
```
https://alive2.llvm.org/ce/z/etjn25
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs