mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Update memdep to handle PartialAlias as MayAlias.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8d02539d7
commit
2cd1952917
@ -291,7 +291,7 @@ getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad,
|
||||
continue;
|
||||
|
||||
// May-alias loads don't depend on each other without a dependence.
|
||||
if (isLoad && R == AliasAnalysis::MayAlias)
|
||||
if (isLoad && R != AliasAnalysis::MustAlias)
|
||||
continue;
|
||||
|
||||
// Stores don't alias loads from read-only memory.
|
||||
@ -323,9 +323,9 @@ getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad,
|
||||
|
||||
if (R == AliasAnalysis::NoAlias)
|
||||
continue;
|
||||
if (R == AliasAnalysis::MayAlias)
|
||||
return MemDepResult::getClobber(Inst);
|
||||
return MemDepResult::getDef(Inst);
|
||||
if (R == AliasAnalysis::MustAlias)
|
||||
return MemDepResult::getDef(Inst);
|
||||
return MemDepResult::getClobber(Inst);
|
||||
}
|
||||
|
||||
// If this is an allocation, and if we know that the accessed pointer is to
|
||||
|
Loading…
x
Reference in New Issue
Block a user