[llvm-commits] [llvm] r56786 - /llvm/trunk/lib/Transforms/IPO/IPConstantPropagation.cpp

Nuno Lopes nunoplopes at sapo.pt
Mon Sep 29 07:40:33 PDT 2008


Author: nlopes
Date: Mon Sep 29 09:40:32 2008
New Revision: 56786

URL: http://llvm.org/viewvc/llvm-project?rev=56786&view=rev
Log:
remove redundant test (mayBeOverriden() includes hasLinkOnceLinkage)

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

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

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/IPConstantPropagation.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/IPConstantPropagation.cpp Mon Sep 29 09:40:32 2008
@@ -155,7 +155,7 @@
 
   // If this function could be overridden later in the link stage, we can't
   // propagate information about its results into callers.
-  if (F.hasLinkOnceLinkage() || F.mayBeOverridden())
+  if (F.mayBeOverridden())
     return false;
   
   // Check to see if this function returns a constant.





More information about the llvm-commits mailing list