From 23773b34c624ef3baff101e82a381c7aa255a85d Mon Sep 17 00:00:00 2001 From: Shuxin Yang Date: Fri, 12 Jul 2013 07:25:38 +0000 Subject: [PATCH] Stylistic change. Thank Nick for figuring out these problems. llvm-svn: 186146 --- llvm/include/llvm/Analysis/ScalarEvolution.h | 2 +- llvm/lib/Analysis/ScalarEvolution.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h index 2af6d89..3817e41 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -545,7 +545,7 @@ namespace llvm { /// forgetMemoizedResults - Drop memoized information computed for S. void forgetMemoizedResults(const SCEV *S); - /// return false iff given SCEV contains a SCEVUnknown with NULL value- + /// Return false iff given SCEV contains a SCEVUnknown with NULL value- /// pointer. bool checkValidity(const SCEV *S) const; diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 69beaaf..85290d6 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2728,7 +2728,7 @@ namespace { case scConstant: return false; case scUnknown: - if(!cast(S)->getValue()) + if (!cast(S)->getValue()) FindOne = true; return false; default: @@ -2755,7 +2755,7 @@ const SCEV *ScalarEvolution::getSCEV(Value *V) { ValueExprMapType::iterator I = ValueExprMap.find_as(V); if (I != ValueExprMap.end()) { const SCEV *S = I->second; - if(checkValidity(S)) + if (checkValidity(S)) return S; else ValueExprMap.erase(I); -- 2.7.4