Make BuildSubAggregate use FindInsertedElement again to prevent it from
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 16 Jun 2008 14:13:46 +0000 (14:13 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 16 Jun 2008 14:13:46 +0000 (14:13 +0000)
commit0a9aaf46bee75540db16603dd60f7d3bc597842d
tree563512acb379f21aca1a9afa2498ccbd99bb9c07
parent977289121996f0afb781592f92a4aee1be3010fe
Make BuildSubAggregate use FindInsertedElement again to prevent it from
inserting extractvalues. In particular, this prevents the insertion of
extractvalues that can't be folded away later. Also add an example of when this
stuff is needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52328 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp