enhance GVN to forward substitute a stored value to a load
authorChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 19:03:47 +0000 (19:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 19:03:47 +0000 (19:03 +0000)
commitbb6495cc673db919225768a62872b79205a3af41
treede8a70bb65aa95eddbe7795741cf7e390ee44dfa
parentc1491f3c47617dedc52b6e9557fa53c24c10c98b
enhance GVN to forward substitute a stored value to a load
(and load -> load) when the base pointers must alias but when
they are different types.  This occurs very very frequently in
176.gcc and other code that uses bitfields a lot.

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