[llvm-commits] [llvm] r150886 - /llvm/trunk/lib/VMCore/Dominators.cpp

Rafael Espindola rafael.espindola at gmail.com
Sat Feb 18 11:46:02 PST 2012


Author: rafael
Date: Sat Feb 18 13:46:02 2012
New Revision: 150886

URL: http://llvm.org/viewvc/llvm-project?rev=150886&view=rev
Log:
White space fixes.

Modified:
    llvm/trunk/lib/VMCore/Dominators.cpp

Modified: llvm/trunk/lib/VMCore/Dominators.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Dominators.cpp?rev=150886&r1=150885&r2=150886&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Dominators.cpp (original)
+++ llvm/trunk/lib/VMCore/Dominators.cpp Sat Feb 18 13:46:02 2012
@@ -84,23 +84,23 @@
 // special checks necessary if A and B are in the same basic block.
 bool DominatorTree::dominates(const Instruction *A, const Instruction *B) const{
   const BasicBlock *BBA = A->getParent(), *BBB = B->getParent();
-  
+
   // If A is an invoke instruction, its value is only available in this normal
   // successor block.
   if (const InvokeInst *II = dyn_cast<InvokeInst>(A))
     BBA = II->getNormalDest();
-  
+
   if (BBA != BBB) return dominates(BBA, BBB);
-  
-  // It is not possible to determine dominance between two PHI nodes 
+
+  // It is not possible to determine dominance between two PHI nodes
   // based on their ordering.
-  if (isa<PHINode>(A) && isa<PHINode>(B)) 
+  if (isa<PHINode>(A) && isa<PHINode>(B))
     return false;
-  
+
   // Loop through the basic block until we find A or B.
   BasicBlock::const_iterator I = BBA->begin();
   for (; &*I != A && &*I != B; ++I)
     /*empty*/;
-  
+
   return &*I == A;
 }





More information about the llvm-commits mailing list