Minor code simplification.
authorDan Gohman <gohman@apple.com>
Wed, 10 Feb 2010 15:54:22 +0000 (15:54 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 10 Feb 2010 15:54:22 +0000 (15:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95780 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolutionExpressions.h

index 79d4c6394374a3e6b21f4f68353d47bdbcf9dd0c..3645a5b12fdd990d2e7d40fc1fc0a83be03a72eb 100644 (file)
@@ -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;