I wanted to see if we would get any perf wins out of this, but
it doesn't seem to be the case. But it still seems worth committing.
Details
Details
- Reviewers
gkm MaskRay - Group Reviewers
Restricted Project - Commits
- rGda24e6d43e3f: [lld-macho][nfc] Add `final` to classes where possible
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I did this (for LibreOffice), and final seems to be only a win when we do LTO and we can de-virtualise a bunch of stuff.
I was hoping that final would also help for dynamic_cast (where, in theory, if we're casting to a final type, we can optimise to a simple comparison), but that doesn't seem to be impemented by the dynamic_cast machinery (or the compiler)