Enhance heap sra to be substantially more aggressive w.r.t PHI
authorChris Lattner <sabre@nondot.org>
Wed, 17 Dec 2008 05:28:49 +0000 (05:28 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Dec 2008 05:28:49 +0000 (05:28 +0000)
commitbce4afe83968bf6504aaf0791d4c49f971d58c52
tree3db8976f506224bfe1233cd30606ff176f339e0f
parent89b64bd7e5032292adc308da0d867979734da8c1
Enhance heap sra to be substantially more aggressive w.r.t PHI
nodes.  This allows it to do fairly general phi insertion if a
load from a pointer global wants to be SRAd but the load is used
by (recursive) phi nodes.  This fixes a pessimization on ppc
introduced by Load PRE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61123 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/heap-sra-phi.ll [new file with mode: 0644]