This fixes a bug introduced in 72661, which can
authorDale Johannesen <dalej@apple.com>
Wed, 17 Jun 2009 20:48:23 +0000 (20:48 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 17 Jun 2009 20:48:23 +0000 (20:48 +0000)
commit42c3f554f4d5e505c3e43cdcf722ec82a7a3f6a5
treeb1be492f650e7abae0d9d3f388a7a2f7e20068b5
parent32a25568fc4a06c81e9f6a0d4a5c3a6388ad8c35
This fixes a bug introduced in 72661, which can
move loads back past a check that the load address
is valid, see new testcase.  The test that went
in with 72661 has exactly this case, except that
the conditional it's moving past is checking
something else; I've settled for changing that
test to reference a global, not a pointer.  It
may be possible to scan all the tests you pass and
make sure none of them are checking any component
of the address, but it's not trivial and I'm not
trying to do that here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/2009-06-17-InvalidPRE.ll [new file with mode: 0644]
test/Transforms/GVN/pre-single-pred.ll