enhance SRoA to promote allocas that are used by PHI nodes. This often
authorChris Lattner <sabre@nondot.org>
Mon, 24 Jan 2011 01:07:11 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Jan 2011 01:07:11 +0000 (01:07 +0000)
commite3357863aaabe297c5fa819d083f2308ebb5f2c2
treed9e67adfec74e5a2600746fab7b0a9c9e53cf7b5
parentc87c50a39c1bc27437352feee0f6aba2d50fa1b5
enhance SRoA to promote allocas that are used by PHI nodes.  This often
occurs because instcombine sinks loads and inserts phis.  This kicks in
on such apps as 175.vpr, eon, 403.gcc, xalancbmk and a bunch of times in
spec2006 in some app that uses std::deque.

This resolves the last of rdar://7339113.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124090 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/phi-select.ll