]> granicus.if.org Git - llvm/commit
[InstCombine] remove dead cases from icmp pair switches; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sun, 9 Apr 2017 21:51:34 +0000 (21:51 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 9 Apr 2017 21:51:34 +0000 (21:51 +0000)
commit23f07450a29fe28cedc891fb2f3e6f7d99a282b9
tree68eab706faeddb913c41887e61d82cb3d6383277
parente093a14cd1e151149cb307fe684ba7e4bf53dd3f
[InstCombine] remove dead cases from icmp pair switches; NFCI

"PredicatesFoldable" returns false for signed/unsigned mismatched pairs,
so these cases should never exist. We'll default to 'unreachable' on those
predicate combos instead.

Most of what's left in these switches belongs in InstSimplify (and may
already be there), so there's probably more that can be done to reduce
this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299829 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp