[InstCombine] clean up InsertRangeTest; NFCI
authorSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 00:19:35 +0000 (00:19 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 00:19:35 +0000 (00:19 +0000)
commit7d9ebaf3373f18536793e265bf8b81848442fbd4
treef3e51c966d2b3acecb38296ae5ae8be73dabf73c
parentba65d4412e9a4d33cdbf464273f5ea35e312acdb
[InstCombine] clean up InsertRangeTest; NFCI

It's much less code and easier to read if we don't duplicate
everything between the 'Inside' and not 'Inside' cases.

As noted with the FIXME, the goal is to make this vector-friendly
in a follow-up patch.

llvm-svn: 280183
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp