From 830db6a00e446220fb31f97f116002db147b3f89 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 2 Aug 2007 18:16:06 +0000 Subject: [PATCH] Fix 80 col. violations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40750 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVN.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index dfe0dff3ad6..2384e59ca0e 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -146,8 +146,13 @@ namespace { namespace llvm { template <> struct DenseMapKeyInfo { - static inline Expression getEmptyKey() { return Expression(Expression::EMPTY); } - static inline Expression getTombstoneKey() { return Expression(Expression::TOMBSTONE); } + static inline Expression getEmptyKey() { + return Expression(Expression::EMPTY); + } + + static inline Expression getTombstoneKey() { + return Expression(Expression::TOMBSTONE); + } static unsigned getHashValue(const Expression e) { unsigned hash = e.opcode; @@ -160,8 +165,8 @@ template <> struct DenseMapKeyInfo { (unsigned)((uintptr_t)e.type >> 9) + hash * 37; - for (SmallVector::const_iterator I = e.varargs.begin(), E = e.varargs.end(); - I != E; ++I) + for (SmallVector::const_iterator I = e.varargs.begin(), + E = e.varargs.end(); I != E; ++I) hash = *I + hash * 37; return hash; @@ -656,7 +661,8 @@ namespace { ValueNumberedSet& currAvail, DenseMap& lastSeenLoad, SmallVector& toErase); - bool processNonLocalLoad(LoadInst* L, SmallVector& toErase); + bool processNonLocalLoad(LoadInst* L, + SmallVector& toErase); Value *GetValueForBlock(BasicBlock *BB, LoadInst* orig, DenseMap &Phis, bool top_level = false); @@ -773,7 +779,8 @@ Value *GVN::GetValueForBlock(BasicBlock *BB, LoadInst* orig, return PN; } -bool GVN::processNonLocalLoad(LoadInst* L, SmallVector& toErase) { +bool GVN::processNonLocalLoad(LoadInst* L, + SmallVector& toErase) { MemoryDependenceAnalysis& MD = getAnalysis(); DenseMap deps; @@ -929,7 +936,8 @@ bool GVN::runOnFunction(Function &F) { for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE; ) { - changed_function |= processInstruction(BI, currAvail, lastSeenLoad, toErase); + changed_function |= processInstruction(BI, currAvail, + lastSeenLoad, toErase); NumGVNInstr += toErase.size(); -- 2.34.1