Move CoerceAvailableValueToLoadType earlier in GVN.cpp. Hook it up
authorChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 20:09:34 +0000 (20:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 20:09:34 +0000 (20:09 +0000)
commit771a5422e167200f8a750449f688215f9abe925a
tree272d03fb77203d45186d51e52033439352e1e766
parent6af4b7ce4d4d462fec2e9b9cf3661cc918fcc57c
Move CoerceAvailableValueToLoadType earlier in GVN.cpp.  Hook it up
so that nonlocal and partially redundant loads can use it as well.
The testcase shows examples of craziness this can handle.  This triggers
*many* times in 176.gcc.

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