[InstCombine] Remove insertRangeTest code that handles the equality case.
authorCraig Topper <craig.topper@intel.com>
Sun, 21 Jul 2019 06:43:38 +0000 (06:43 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 21 Jul 2019 06:43:38 +0000 (06:43 +0000)
commit1d149d08d3aeed65d5b10ee2e84c72e661122344
treece6202caf5b674c33c4e14f185537bba0b65ae88
parent8fabdfe9fcd2927a0a7cbdf3a15c7cf9b7a52019
[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.

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