git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119797
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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.
// 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()));