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:
Duncan Sands 2010-11-19 08:33:20 +00:00
parent 17fd7bda5a
commit 3b0aed19f0

View File

@ -1035,9 +1035,7 @@ public:
// If the replacing instruction is defined in the same loop as the original // 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 // instruction, or in a loop that contains it as an inner loop, then using
// it as a replacement will not break LCSSA form. // it as a replacement will not break LCSSA form.
Loop *FromLoop = getLoopFor(From->getParent()); return ToLoop->contains(getLoopFor(From->getParent()));
if (ToLoop->contains(FromLoop)) return true;
return false;
} }
}; };