Fix a fixme by making memdep's handling of allocations more logical.
authorChris Lattner <sabre@nondot.org>
Sun, 30 Nov 2008 01:39:32 +0000 (01:39 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Nov 2008 01:39:32 +0000 (01:39 +0000)
commit237a8287454389a5b940e18c1efb2201fc443208
treed66f515f18d652d4a41966cf44252a2c9cfe5e09
parent73ec3cdd7140aee6d2b9ac32bc2298254ff48c97
Fix a fixme by making memdep's handling of allocations more logical.
If we see that a load depends on the allocation of its memory with no
intervening stores, we now return a 'None' depedency instead of "Normal".
This tweaks GVN to do its optimization with the new result.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp
lib/Transforms/Scalar/GVN.cpp