| Issue |
71782
|
| Summary |
[optimization] Missing delete redundant select as UB
|
| Labels |
new issue
|
| Assignees |
vfdff
|
| Reporter |
vfdff
|
test: https://alive2.llvm.org/ce/z/ynHjfo
```
define i16 @src(i16 %n, i16 %d) {
%1 = icmp eq i16 %d, 0
%2 = urem i16 %n, %d
%3 = select i1 %1, i16 -1, i16 %2
ret i16 %3
}
define i16 @tgt(i16 %n, i16 %d) {
%1 = urem i16 %n, %d
ret i16 %1
}
```
this is similar to [issue #64240](https://github.com/llvm/llvm-project/issues/64240), but here is a `[u|s]rem`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs