]> granicus.if.org Git - llvm/commit
[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)
commita787e56a9d72d054bca021cd80ce18850a2e7239
tree660a30cfbf8513602a965a71a6574e21456252b8
parentc409d22837eb49abcc7b62c1c795df63902bc2d7
[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