Rather than emitting the bias variable lazily as needed, emit it
eagerly. This allows profile runtime to refer to this variable
unconditionally without having to use the weak reference. The bias
variable is in a COMDAT so there'll never be more than one instance,
and if it's not needed, linker should be able to GC it, so the overhead
should be minimal.
Details
Details
- Reviewers
mcgrathr davidxl - Commits
- rG6660cec56850: [InstrProfiling] Emit bias variable eagerly
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This is a follow up to 54902e00d1280785042e2c7ec71b25a949ade92c, no other changes should be necessary at this point.
clang-format: please reformat the code