Add the select optimization recently added to instcombine to constant folding.
commit6b80dd953618b6dc764eb9d91f0e750e44ec0947
authorNick Lewycky <nicholas@mxc.ca>
Sat, 29 Jan 2011 20:35:06 +0000 (29 20:35 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 29 Jan 2011 20:35:06 +0000 (29 20:35 +0000)
treecc708cb1dead7db7ceeefa74140fabb5091bbc4a
parent995d0c28327876acdba7fe7f94601263960c51dc
Add the select optimization recently added to instcombine to constant folding.
This is the one where one of the branches of the select is another select on
the same condition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124547 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp
test/Transforms/ConstProp/constant-expr.ll