Issue |
132508
|
Summary |
`u <= (u <= (unsigned)b)` can be folded into `(u <= (unsigned)b)`
|
Labels |
new issue
|
Assignees |
|
Reporter |
k-arrows
|
Consider the following test case which is taken from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119422.
https://godbolt.org/z/feoGYh15d
https://alive2.llvm.org/ce/z/AjmXuN
```cpp
int src(unsigned u, bool b)
{
return u <= (u <= (unsigned)b);
}
int tgt(unsigned u, bool b)
{
return u <= (unsigned)b;
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs