Make DecomposeGEPExpression check SimplifyInstruction only
authorDan Gohman <gohman@apple.com>
Tue, 24 May 2011 18:24:08 +0000 (18:24 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 24 May 2011 18:24:08 +0000 (18:24 +0000)
commit9adf151b3d46740ac103c4e21fbdec66d6ef1cdf
tree6b1fe821d1e94a8bd459a0ee74871917f73b81ba
parent6b918b84661687f7b5fc92dabd6d58e258bf39f2
Make DecomposeGEPExpression check SimplifyInstruction only
after checking for a GEP, so that it matches what GetUnderlyingObject
does. This fixes an obscure bug turned up by bugpoint in the testcase
for PR9931.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicAliasAnalysis.cpp
test/Analysis/BasicAA/underlying-value.ll [new file with mode: 0644]