[InstCombine] Remove insertRangeTest code that handles the equality case.
commit736bb9e2913a482bd54881a86f5061047836befa
authorCraig Topper <craig.topper@intel.com>
Sun, 21 Jul 2019 06:43:38 +0000 (21 06:43 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 21 Jul 2019 06:43:38 +0000 (21 06:43 +0000)
tree660a30cfbf8513602a965a71a6574e21456252b8
parentca511bd7e55f64e3e2335359c145cedce29583e2
[InstCombine] Remove insertRangeTest code that handles the equality case.

For equality, the function called getTrue/getFalse with the VT
of the comparison input. But getTrue/getFalse need the boolean VT.
So if this code ever executed, it would assert.

I believe these cases are removed by InstSimplify so we don't get here.

So this patch just fixes up an assert to exclude the equality
possibility and removes the broken code.

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