summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-04-02 20:37:40 +0000
committerSanjay Patel <spatel@rotateright.com>2018-04-02 20:37:40 +0000
commit01621ff0d614c2e0417fad3fe131e27b0c95e7d2 (patch)
tree1435c3c6ceca628312335338cbe8bf87db97389e /examples
parent4e5dad45d623deeacfcdf60b81e1871dfeb988ee (diff)
[InstCombine] add folds for icmp + sub (PR36969)
(A - B) >u A --> A <u B C <u (C - D) --> C <u D https://rise4fun.com/Alive/e7j Name: ugt %sub = sub i8 %x, %y %cmp = icmp ugt i8 %sub, %x => %cmp = icmp ult i8 %x, %y Name: ult %sub = sub i8 %x, %y %cmp = icmp ult i8 %x, %sub => %cmp = icmp ult i8 %x, %y This should fix: https://bugs.llvm.org/show_bug.cgi?id=36969 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions