[GVN] Pass the phi-translated address of a load instead of the untranslated
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 2 May 2014 17:59:17 +0000 (17:59 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 2 May 2014 17:59:17 +0000 (17:59 +0000)
commitd753e830cda1b1604a6527f81f76709039999fc4
tree24d850bfbeb135b156ca0ec6c2d16347d677f537
parent735f9edde15046cf67037449fb7c41c048c923b7
[GVN] Pass the phi-translated address of a load instead of the untranslated
address to AnalyzeLoadFromClobberingLoad. This fixes a bug in load-PRE where
PRE is applied to a load that is not partially redundant.

<rdar://problem/16638765>.

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