[llvm-commits] [llvm] r68939 - /llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp

Chris Lattner sabre at nondot.org
Sun Apr 12 22:38:24 PDT 2009


Author: lattner
Date: Mon Apr 13 00:38:23 2009
New Revision: 68939

URL: http://llvm.org/viewvc/llvm-project?rev=68939&view=rev
Log:
eliminate unneeded parens.

Modified:
    llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp

Modified: llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp?rev=68939&r1=68938&r2=68939&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp Mon Apr 13 00:38:23 2009
@@ -63,7 +63,7 @@
   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
     Changed |= RemoveUnusedGlobalValue(*I);
     // Functions with external linkage are needed if they have a body
-    if ((!I->hasLocalLinkage() && !I->hasLinkOnceLinkage()) &&
+    if (!I->hasLocalLinkage() && !I->hasLinkOnceLinkage() &&
         !I->isDeclaration())
       GlobalIsNeeded(I);
   }
@@ -73,7 +73,7 @@
     Changed |= RemoveUnusedGlobalValue(*I);
     // Externally visible & appending globals are needed, if they have an
     // initializer.
-    if ((!I->hasLocalLinkage() && !I->hasLinkOnceLinkage()) &&
+    if (!I->hasLocalLinkage() && !I->hasLinkOnceLinkage() &&
         !I->isDeclaration())
       GlobalIsNeeded(I);
   }





More information about the llvm-commits mailing list