aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-10 15:54:22 +0000
committerDan Gohman <gohman@apple.com>2010-02-10 15:54:22 +0000
commitc056baed8704bd715ee58e5dfe724c255e68abbd (patch)
tree2ecc7e5122b7ee50d59a6d8ddbcc7025290a5a3c
parentc9e31cc8232892b30dac38f97c90ebc41428f59a (diff)
downloadexternal_llvm-c056baed8704bd715ee58e5dfe724c255e68abbd.zip
external_llvm-c056baed8704bd715ee58e5dfe724c255e68abbd.tar.gz
external_llvm-c056baed8704bd715ee58e5dfe724c255e68abbd.tar.bz2
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95780 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpressions.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h
index 79d4c63..3645a5b 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpressions.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h
@@ -412,8 +412,7 @@ namespace llvm {
}
virtual bool hasComputableLoopEvolution(const Loop *QL) const {
- if (L == QL) return true;
- return false;
+ return L == QL;
}
virtual bool isLoopInvariant(const Loop *QueryLoop) const;