Use Alias Analysis to hoist 2 loads from diamond to the common predecessor basic...
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Sun, 2 Nov 2014 08:03:05 +0000 (08:03 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Sun, 2 Nov 2014 08:03:05 +0000 (08:03 +0000)
commit01d89eee39b26f0acd5835b12f4a092f30470c74
treed94133db162597851ef75bf49ead3a7930081f30
parentc821f8794df9b634935ed33abe30f70ca5c3efd3
Use Alias Analysis to hoist 2 loads from diamond to the common predecessor basic block.
Alias Analysis allows to detect real barriers for load hoisting.

Review in http://reviews.llvm.org/D5991

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
test/Transforms/InstMerge/ld_hoist1.ll [new file with mode: 0644]