Add an option to GVN to remove all partially redundant loads. This is currently
authorBob Wilson <bob.wilson@apple.com>
Mon, 1 Feb 2010 21:17:14 +0000 (21:17 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 1 Feb 2010 21:17:14 +0000 (21:17 +0000)
commit6cad41778eeaf657f07000d41b4bb98597ed224a
tree543f5e6bdc7cdde2e3a54ab96dcbac1ee6ee529a
parentaec0081fac5406aeff3dfb91090d6472d14f8ca6
Add an option to GVN to remove all partially redundant loads.  This is currently
disabled by default.  This divides the existing load PRE code into 2 phases:
first it checks that it is safe to move the load to each of the predecessors
where it is unavailable, and then if it is safe, the code is changed to move
the load.  Radar 7571861.

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