Do not return success after checking only the FIRST USE of a gep instruction.
authorChris Lattner <sabre@nondot.org>
Fri, 12 Sep 2003 16:02:12 +0000 (16:02 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Sep 2003 16:02:12 +0000 (16:02 +0000)
commit8fce16ef1abd92c59ab2b02d59e6d16a1c0ba0b7
tree97a9ea1b69ac1bf6495f2f1c19ff080de312cd0b
parent69d903d5becd8ce5c2b9b50d6867a8dc89eb7c78
Do not return success after checking only the FIRST USE of a gep instruction.
Instead, check all uses.
This fixes bug: ScalarRepl/2003-09-12-IncorrectPromote.ll
This also fixes the miscompilation of Ptrdist/bc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp