mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Simplification noticed by Frits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
150c4a1a89
commit
1a4d58af09
@ -361,9 +361,8 @@ static bool isCompleteOverwrite(const AliasAnalysis::Location &Later,
|
||||
//
|
||||
// |--earlier--|
|
||||
// |----- later ------|
|
||||
if ((EarlierOff == LaterOff && Earlier.Size <= Later.Size) ||
|
||||
(EarlierOff > LaterOff &&
|
||||
EarlierOff + Earlier.Size <= LaterOff + Later.Size))
|
||||
if (EarlierOff >= LaterOff &&
|
||||
EarlierOff + Earlier.Size <= LaterOff + Later.Size)
|
||||
return true;
|
||||
|
||||
// Otherwise, they don't completely overlap.
|
||||
|
Loading…
x
Reference in New Issue
Block a user