Enable Load PRE. This teaches GVN to push partially redundant loads up the
authorChris Lattner <sabre@nondot.org>
Mon, 15 Dec 2008 05:28:29 +0000 (05:28 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Dec 2008 05:28:29 +0000 (05:28 +0000)
commit2ba3b621495b89f45521e627554a40a9885899e7
tree753768a5b0ca524696f1759720ac467a36315f90
parent3af23f8aba9ac28fe5a8646f57c2c307a35c1e4d
Enable Load PRE.  This teaches GVN to push partially redundant loads up the
CFG when there is exactly one predecessor where the load is not available.
This is designed to not increase code size but still eliminate partially
redundant loads.  This fires 1765 times on 403.gcc even though it doesn't
do critical edge splitting yet (the most common reason for it to fail).

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