projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
494b5ba
)
[FunctionImport] Delete unneeded setLive. NFC
author
Fangrui Song
<i@maskray.me>
Sat, 6 Mar 2021 22:09:54 +0000
(14:09 -0800)
committer
Fangrui Song
<i@maskray.me>
Sat, 6 Mar 2021 22:09:54 +0000
(14:09 -0800)
ValueInfo's in Worklist are guaranteed to be live.
llvm/lib/Transforms/IPO/FunctionImport.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/FunctionImport.cpp
b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index
988f94a
..
5337315
100644
(file)
--- a/
llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/
llvm/lib/Transforms/IPO/FunctionImport.cpp
@@
-914,7
+914,6
@@
void llvm::computeDeadSymbols(
while (!Worklist.empty()) {
auto VI = Worklist.pop_back_val();
for (auto &Summary : VI.getSummaryList()) {
- Summary->setLive(true);
if (auto *AS = dyn_cast<AliasSummary>(Summary.get())) {
// If this is an alias, visit the aliasee VI to ensure that all copies
// are marked live and it is added to the worklist for further