Fix another crash found by inspection. If we have a PHI node merging
authorChris Lattner <sabre@nondot.org>
Tue, 16 Dec 2008 21:24:51 +0000 (21:24 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Dec 2008 21:24:51 +0000 (21:24 +0000)
commit85d3d4f35de33c6d0d3800bd87619c00d06a98e2
tree9669b9b37bd747b2f728fe7ef8967e9970689cb2
parent542dc1a0decc2b598a1f856370a55091a51e102c
Fix another crash found by inspection.  If we have a PHI node merging
the load multiple times, make sure the check the uses of the PHI to
ensure they are transformable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash-2.ll [new file with mode: 0644]