ConstantFoldInstOperands doesn't like compares, hand it off to instsimplify instead.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 May 2011 10:16:58 +0000 (10:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 May 2011 10:16:58 +0000 (10:16 +0000)
commit2c5cc6887412597518ca4a585625b0af1ea71622
tree49bb70c0d759e22824692f1c43fad96ef2686716
parentd7c10862016939c9850cadfe5e1c35513c0adf28
ConstantFoldInstOperands doesn't like compares, hand it off to instsimplify instead.

Fixes PR10040.

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