projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
224c86e
)
remove redundant test (mayBeOverriden() includes hasLinkOnceLinkage)
author
Nuno Lopes
<nunoplopes@sapo.pt>
Mon, 29 Sep 2008 14:40:32 +0000
(14:40 +0000)
committer
Nuno 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/IPConstantPropagation.cpp
b/lib/Transforms/IPO/IPConstantPropagation.cpp
index 66fc2e33ea7571a1b3a8ed221a4b549be5b75ca0..1d65562f58d80bb4ce58651413376633a57d2105 100644
(file)
--- a/
lib/Transforms/IPO/IPConstantPropagation.cpp
+++ b/
lib/Transforms/IPO/IPConstantPropagation.cpp
@@
-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.