InstCombine: Don't create an unused instruction
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 24 Nov 2014 16:41:13 +0000 (16:41 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 24 Nov 2014 16:41:13 +0000 (16:41 +0000)
commita17a9dc8df60745a97b98f4e33b11c5d26b49225
treebd18ddfaa93959bcc3bbacc0b5e346c14e0e0384
parentc19526770e282d886e062e84957e611308702da9
InstCombine: Don't create an unused instruction

We would create an instruction but not inserting it.
Not inserting the unused instruction would lead us to verification
failure.

This fixes PR21653.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222659 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/mul.ll