[InstCombine] Use ConstantExpr::getBinOpIdentity to implement getIdentityValue.
authorCraig Topper <craig.topper@gmail.com>
Tue, 11 Apr 2017 17:42:40 +0000 (17:42 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 11 Apr 2017 17:42:40 +0000 (17:42 +0000)
commit271b2245f40af1c363d10404d0c4d7c5e64d19c3
tree4ad04e0b40dbbb49e7a436b1a73d3791dfa630e0
parentb34ec829beb543358ffb1bf6e51a18e5ce9265d3
[InstCombine] Use ConstantExpr::getBinOpIdentity to implement getIdentityValue.

This removes a TODO in getIdentityValue and may allow some transforms to occur earlier. But I was unable to find any transforms we didn't already handle.

llvm-svn: 299966
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp