[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneModule.cpp InlineFunction.cpp Local.cpp PromoteMemoryToRegister.cpp

Jeff Cohen jeffc at jolt-lang.org
Tue Jul 26 23:12:58 PDT 2005



Changes in directory llvm/lib/Transforms/Utils:

CloneModule.cpp updated: 1.13 -> 1.14
InlineFunction.cpp updated: 1.34 -> 1.35
Local.cpp updated: 1.40 -> 1.41
PromoteMemoryToRegister.cpp updated: 1.77 -> 1.78
---
Log message:

Eliminate all remaining tabs and trailing spaces.

---
Diffs of the changes:  (+6 -6)

 CloneModule.cpp             |    2 +-
 InlineFunction.cpp          |    2 +-
 Local.cpp                   |    6 +++---
 PromoteMemoryToRegister.cpp |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/lib/Transforms/Utils/CloneModule.cpp
diff -u llvm/lib/Transforms/Utils/CloneModule.cpp:1.13 llvm/lib/Transforms/Utils/CloneModule.cpp:1.14
--- llvm/lib/Transforms/Utils/CloneModule.cpp:1.13	Sun May  8 20:04:34 2005
+++ llvm/lib/Transforms/Utils/CloneModule.cpp	Wed Jul 27 01:12:34 2005
@@ -55,7 +55,7 @@
 
   // Loop over the functions in the module, making external functions as before
   for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I) {
-    Function *NF = 
+    Function *NF =
       new Function(cast<FunctionType>(I->getType()->getElementType()),
                    GlobalValue::ExternalLinkage, I->getName(), New);
     NF->setCallingConv(I->getCallingConv());


Index: llvm/lib/Transforms/Utils/InlineFunction.cpp
diff -u llvm/lib/Transforms/Utils/InlineFunction.cpp:1.34 llvm/lib/Transforms/Utils/InlineFunction.cpp:1.35
--- llvm/lib/Transforms/Utils/InlineFunction.cpp:1.34	Sun May  8 20:04:34 2005
+++ llvm/lib/Transforms/Utils/InlineFunction.cpp	Wed Jul 27 01:12:34 2005
@@ -107,7 +107,7 @@
         }
   }
 
-  // If we are inlining tail call instruction through an invoke or 
+  // If we are inlining tail call instruction through an invoke or
   if (MustClearTailCallFlags) {
     for (Function::iterator BB = FirstNewBlock, E = Caller->end();
          BB != E; ++BB)


Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.40 llvm/lib/Transforms/Utils/Local.cpp:1.41
--- llvm/lib/Transforms/Utils/Local.cpp:1.40	Sun Jun 19 09:41:20 2005
+++ llvm/lib/Transforms/Utils/Local.cpp	Wed Jul 27 01:12:34 2005
@@ -245,10 +245,10 @@
   switch (Name[0])
   {
     case 'a':
-      return Name == "acos" || Name == "asin" || Name == "atan" || 
+      return Name == "acos" || Name == "asin" || Name == "atan" ||
              Name == "atan2";
     case 'c':
-      return Name == "ceil" || Name == "cos" || Name == "cosf" || 
+      return Name == "ceil" || Name == "cos" || Name == "cosf" ||
              Name == "cosh";
     case 'e':
       return Name == "exp";
@@ -374,7 +374,7 @@
 
 bool llvm::isInstructionTriviallyDead(Instruction *I) {
   if (!I->use_empty() || isa<TerminatorInst>(I)) return false;
- 
+
   if (!I->mayWriteToMemory()) return true;
 
   if (CallInst *CI = dyn_cast<CallInst>(I))


Index: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff -u llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.77 llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.78
--- llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.77	Thu Jun 30 02:29:44 2005
+++ llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp	Wed Jul 27 01:12:34 2005
@@ -665,7 +665,7 @@
     // undef into the alloca right after the alloca itself.
     for (unsigned i = 0, e = RetryList.size(); i != e; ++i) {
       BasicBlock::iterator BBI = RetryList[i];
-      
+
       new StoreInst(UndefValue::get(RetryList[i]->getAllocatedType()),
                     RetryList[i], ++BBI);
     }






More information about the llvm-commits mailing list