OSDN Git Service

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)
commit7f252db2883e75e87c6b10bdab09eda0e0a562bb
tree9669b9b37bd747b2f728fe7ef8967e9970689cb2
parentae6b096b4d196dffec11b08fe94a24a7fb2ef7e4
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]