Skip to content
Commit ca6e117d authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] reorder icmp with offset folds for better results

This set of folds was added recently with:
c7b658ae
0c400e89
40b752d2

...and I noted that this wasn't likely to fire in code derived
from C/C++ source because of nsw in particular. But I didn't
notice that I had placed the code above the no-wrap block
of transforms.

This is likely the cause of regressions noted from the previous
commit because -- as shown in the test diffs -- we may have
transformed into a compare with an arbitrary constant rather
than a simpler signbit test.
parent b155c871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment