Re-reapply r221924: "[GVN] Perform Scalar PRE on gep indices that feed loads before
authorTim Northover <tnorthover@apple.com>
Fri, 9 Jan 2015 19:19:56 +0000 (19:19 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 9 Jan 2015 19:19:56 +0000 (19:19 +0000)
commit8cd39a2630b526a1f31e6341ffee380b3fcdb637
treeed0041c2dcef295ba430376b742ea7e4882edc1f
parent4c553e0367dd13e1af55f0d90a8cd00a6ca15e3e
Re-reapply r221924: "[GVN] Perform Scalar PRE on gep indices that feed loads before
doing Load PRE"

It's not really expected to stick around, last time it provoked a weird LTO
build failure that I can't reproduce now, and the bot logs are long gone. I'll
re-revert it if the failures recur.

Original description: Perform Scalar PRE on gep indices that feed loads before
doing Load PRE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225536 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Analysis/TypeBasedAliasAnalysis/gvn-nonlocal-type-mismatch.ll
test/Transforms/GVN/pre-gep-load.ll [new file with mode: 0644]