mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
Simplify, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119797 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17fd7bda5a
commit
3b0aed19f0
@ -1035,9 +1035,7 @@ public:
|
||||
// If the replacing instruction is defined in the same loop as the original
|
||||
// instruction, or in a loop that contains it as an inner loop, then using
|
||||
// it as a replacement will not break LCSSA form.
|
||||
Loop *FromLoop = getLoopFor(From->getParent());
|
||||
if (ToLoop->contains(FromLoop)) return true;
|
||||
return false;
|
||||
return ToLoop->contains(getLoopFor(From->getParent()));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user