Simplify, no functionality change.

llvm-svn: 119797
This commit is contained in:
Duncan Sands 2010-11-19 08:33:20 +00:00
parent 9900b4802e
commit af4ad85160
1 changed files with 1 additions and 3 deletions

View File

@ -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()));
}
};