From db292a6f7ffe410913255f65e195004327e2e0ce Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 12 Feb 2012 00:52:26 +0000 Subject: [PATCH] Fix function name in comment to match actual name. Fix comments that are using doxy-style on local variables to not do so. Fix one 80-col violation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150320 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/GlobalOpt.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index b7a5b51c736..f44de7a6101 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -1698,8 +1698,8 @@ static bool TryToShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) { } -/// ProcessInternalGlobal - Analyze the specified global variable and optimize -/// it if possible. If we make a change, return true. +/// ProcessGlobal - Analyze the specified global variable and optimize it if +/// possible. If we make a change, return true. bool GlobalOpt::ProcessGlobal(GlobalVariable *GV, Module::global_iterator &GVI) { if (!GV->hasLocalLinkage()) @@ -1736,7 +1736,7 @@ bool GlobalOpt::ProcessGlobal(GlobalVariable *GV, /// it if possible. If we make a change, return true. bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV, Module::global_iterator &GVI, - const SmallPtrSet &PHIUsers, + const SmallPtrSet &PHIUsers, const GlobalStatus &GS) { // If this is a first class global and has only one accessing function // and this function is main (which we know is not recursive we can make @@ -2518,7 +2518,7 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal, CallStack.push_back(F); - /// Values - As we compute SSA register values, we store their contents here. + // Values - As we compute SSA register values, we store their contents here. DenseMap Values; // Initialize arguments to the incoming values specified. @@ -2576,23 +2576,23 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal, /// we can. Return true if we can, false otherwise. static bool EvaluateStaticConstructor(Function *F, const TargetData *TD, const TargetLibraryInfo *TLI) { - /// MutatedMemory - For each store we execute, we update this map. Loads - /// check this to get the most up-to-date value. If evaluation is successful, - /// this state is committed to the process. + // MutatedMemory - For each store we execute, we update this map. Loads + // check this to get the most up-to-date value. If evaluation is successful, + // this state is committed to the process. DenseMap MutatedMemory; - /// AllocaTmps - To 'execute' an alloca, we create a temporary global variable - /// to represent its body. This vector is needed so we can delete the - /// temporary globals when we are done. + // AllocaTmps - To 'execute' an alloca, we create a temporary global variable + // to represent its body. This vector is needed so we can delete the + // temporary globals when we are done. std::vector AllocaTmps; - /// CallStack - This is used to detect recursion. In pathological situations - /// we could hit exponential behavior, but at least there is nothing - /// unbounded. + // CallStack - This is used to detect recursion. In pathological situations + // we could hit exponential behavior, but at least there is nothing + // unbounded. std::vector CallStack; - /// SimpleConstants - These are constants we have checked and know to be - /// simple enough to live in a static initializer of a global. + // SimpleConstants - These are constants we have checked and know to be + // simple enough to live in a static initializer of a global. SmallPtrSet SimpleConstants; // Call the function. -- 2.34.1