Fix memdep's code for reasoning about dependences between two calls. A Ref
authorDan Gohman <gohman@apple.com>
Thu, 5 Aug 2010 22:09:15 +0000 (22:09 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Aug 2010 22:09:15 +0000 (22:09 +0000)
commit5fa417c7904f7394d4e6dcb86e366c86867bcb5a
tree68a0821883973c55b5f4f210abc85726e4ec50c1
parent3ecf355c7a6f6f559f3c85b46d041ffda5163a8c
Fix memdep's code for reasoning about dependences between two calls. A Ref
response from getModRefInfo is not useful here. Instead, check for identical
calls only in the NoModRef case.

Reapply r110270, and strengthen it to compensate for the memdep changes.
When both calls are readonly, there is no dependence between them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110382 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/MemoryDependenceAnalysis.cpp
test/Analysis/BasicAA/getmodrefinfo-cs-cs.ll