mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b79bf1966d
commit
2960ed4b85
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user