aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-19 08:33:20 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-19 08:33:20 +0000
commit3b0aed19f0f9ed62362c04f7e18e2ada686f4055 (patch)
tree09bfde7a9e82906d963d3e48d3409d082716da81
parent17fd7bda5ac08f873c063c64e1456f8960a0c765 (diff)
Simplify, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119797 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/LoopInfo.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index 482c0fcbde..62d8d173cb 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -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()));
}
};