For both operands are unsigned, add the following optimization test case.
- X > Y && X != 0 --> X > Y
- X > Y || X != 0 --> X != 0
- X <= Y || X != 0 --> true
- X <= Y || X == 0 --> X <= Y
- X > Y && X == 0 --> false
Differential D47972
update simplifyUnsignedRangeCheck function's test case. HLJ2009 on Jun 8 2018, 7:03 PM. Authored by
Details
For both operands are unsigned, add the following optimization test case.
Diff Detail
Event TimelineComment Actions Adding Roman as reviewer - do these tests answer the questions from D47922 about whether the existing transform is miscompiling or just incomplete? Comment Actions @HLJ2009 just in case, let me reiterate: |