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)
commit27152aea8802ab777b5cc42dedd7aa2f09411c75
treeaf74d2cb68841b56a28b37977debc082edeaf82e
parent978020807af0d62e5f6a05be2d143c4a94e349c5
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

llvm-svn: 221091
llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
llvm/test/Transforms/InstMerge/ld_hoist1.ll [new file with mode: 0644]