remove redundant test (mayBeOverriden() includes hasLinkOnceLinkage)
authorNuno Lopes <nunoplopes@sapo.pt>
Mon, 29 Sep 2008 14:40:32 +0000 (14:40 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Mon, 29 Sep 2008 14:40:32 +0000 (14:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56786 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/IPConstantPropagation.cpp

index 66fc2e33ea7571a1b3a8ed221a4b549be5b75ca0..1d65562f58d80bb4ce58651413376633a57d2105 100644 (file)
@@ -155,7 +155,7 @@ bool IPCP::PropagateConstantReturn(Function &F) {
 
   // 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.