mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 23:25:06 +00:00
Change greater than to greater than or equal so that an identical sized store to the same offset is treated as completing overwriting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -378,7 +378,7 @@ static OverwriteResult isOverwrite(const AliasAnalysis::Location &Later,
|
||||
//
|
||||
// We have to be careful here as *Off is signed while *.Size is unsigned.
|
||||
if (EarlierOff >= LaterOff &&
|
||||
Later.Size > Earlier.Size &&
|
||||
Later.Size >= Earlier.Size &&
|
||||
uint64_t(EarlierOff - LaterOff) + Earlier.Size <= Later.Size)
|
||||
return OverwriteComplete;
|
||||
|
||||
|
Reference in New Issue
Block a user