This revision was automatically updated to reflect the committed changes.
Closed by commit rG0768b0576a93: Avoid redundant work when computing vtable
vcall visibility (authored by tejohnson).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91676/new/
wmi accepted this revision.
wmi added inline comments.
Comment at: clang/lib/CodeGen/CGVTables.cpp:1301-1302
+ // has no effect on the min visibility computed below by the recursive
caller.
+ if (!Visited.insert(RD).second)
+return llvm::GlobalObject::VCallVisibilityTransl
tejohnson added inline comments.
Comment at: clang/lib/CodeGen/CGVTables.cpp:1301-1302
+ // has no effect on the min visibility computed below by the recursive
caller.
+ if (!Visited.insert(RD).second)
+return llvm::GlobalObject::VCallVisibilityTranslationUnit;
+
-
tejohnson updated this revision to Diff 307404.
tejohnson added a comment.
Improve comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91676/new/
https://reviews.llvm.org/D91676
Files:
clang/lib/CodeGen/CGVTables.cpp
clang/lib/CodeGen/CodeGe
wmi accepted this revision.
wmi added a comment.
This revision is now accepted and ready to land.
LGTM.
Comment at: clang/lib/CodeGen/CGVTables.cpp:1301-1302
+ // has no effect on the min visibility computed below by the recursive
caller.
+ if (!Visited.insert(RD).second)
+
tejohnson added inline comments.
Comment at: clang/lib/CodeGen/CGVTables.cpp:1301-1302
+ // has no effect on the min visibility computed below by the recursive
caller.
+ if (!Visited.insert(RD).second)
+return llvm::GlobalObject::VCallVisibilityTranslationUnit;
+
-
wmi added inline comments.
Comment at: clang/lib/CodeGen/CGVTables.cpp:1301-1302
+ // has no effect on the min visibility computed below by the recursive
caller.
+ if (!Visited.insert(RD).second)
+return llvm::GlobalObject::VCallVisibilityTranslationUnit;
+
---
tejohnson added a comment.
Adding another reviewer - @wmi can you take a look? This is a straightforward
compile time fix.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91676/new/
https://reviews.llvm.org/D91676
__
tejohnson added a comment.
ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91676/new/
https://reviews.llvm.org/D91676
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
tejohnson created this revision.
tejohnson added reviewers: pcc, ostannard.
Herald added a project: clang.
tejohnson requested review of this revision.
Add a Visited set to avoid repeatedly processing the same base classes
in complex class hierarchies. This cut down the compile time of one
source
10 matches
Mail list logo