mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +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:
parent
24d9c8400f
commit
c1ac0c1c41
@ -492,7 +492,7 @@ uint32_t ValueTable::lookup_or_add(Value* V) {
|
|||||||
|
|
||||||
return nextValueNumber++;
|
return nextValueNumber++;
|
||||||
} else if (I->second != MemoryDependenceAnalysis::NonLocal) {
|
} 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))
|
if (CallInst* CD = dyn_cast<CallInst>(I->second))
|
||||||
cdep = CD;
|
cdep = CD;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user