80 col / tabs fixes
authorNate Begeman <natebegeman@mac.com>
Tue, 13 May 2008 01:48:26 +0000 (01:48 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 13 May 2008 01:48:26 +0000 (01:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51021 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/ArgumentPromotion.cpp
lib/Transforms/Scalar/DeadStoreElimination.cpp

index 264f080787c17833449a4a2ed870a8e8f9f6f811..e874ec4ec622d5925615b8c33e86cf680fc59433 100644 (file)
@@ -66,7 +66,8 @@ namespace {
 
     virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
     static char ID; // Pass identification, replacement for typeid
-    ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID), maxElements(maxElements) {}
+    ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID),
+                                             maxElements(maxElements) {}
 
   private:
     bool PromoteArguments(CallGraphNode *CGN);
@@ -74,8 +75,8 @@ namespace {
     Function *DoPromotion(Function *F, 
                           SmallPtrSet<Argument*, 8> &ArgsToPromote,
                           SmallPtrSet<Argument*, 8> &ByValArgsToTransform);
-       /// The maximum number of elements to expand, or 0 for unlimited.
-       unsigned maxElements;
+  /// The maximum number of elements to expand, or 0 for unlimited.
+  unsigned maxElements;
   };
 }
 
@@ -290,7 +291,7 @@ bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg, bool isByVal) const {
                << Arg->getName() << "' because it would require adding more "
                << "than " << maxElements << " arguments to the function.\n";
           // We limit aggregate promotion to only promoting up to a fixed number
-                 // of elements of the aggregate.
+          // of elements of the aggregate.
           return false;
         }
         GEPIndices.push_back(Operands);
index bbb3a8a34472b6d792c07a11db14ede57cb0dc60..4662e05aba54e25267ca4835b9aef97a9c55f3fc 100644 (file)
@@ -327,8 +327,8 @@ bool DSE::handleEndBlock(BasicBlock& BB,
     
     // If we encounter a use of the pointer, it is no longer considered dead
     if (LoadInst* L = dyn_cast<LoadInst>(BBI)) {
-      // However, if this load is unused and not volatile, we can go ahead and remove it,
-      // and not have to worry about it making our pointer undead!
+      // However, if this load is unused and not volatile, we can go ahead and
+      // remove it, and not have to worry about it making our pointer undead!
       if (L->use_empty() && !L->isVolatile()) {
         MD.removeInstruction(L);