1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

We don't want to find dependencies within the same block in this case. It leads to incorrect results because

we're detecting something at or after the call we're querying on.

llvm-svn: 52433
This commit is contained in:
Owen Anderson 2008-06-17 22:27:06 +00:00
parent 24d9c8400f
commit c1ac0c1c41

View File

@ -492,7 +492,7 @@ uint32_t ValueTable::lookup_or_add(Value* V) {
return nextValueNumber++;
} else if (I->second != MemoryDependenceAnalysis::NonLocal) {
if (DT->dominates(I->first, C->getParent())) {
if (DT->properlyDominates(I->first, C->getParent())) {
if (CallInst* CD = dyn_cast<CallInst>(I->second))
cdep = CD;
else {