Right now there is no hit counter on the line of function.
So the idea is add the line of the function to all the lines covered by the entry block.
Tests in compiler-rt/profile will be fixed in another patch: https://reviews.llvm.org/D49854
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 21383 Build 21383: arc lint + arc unit
Event Timeline
Comment Actions
I hope this won't have any side effects we are not expecting. The updated tests in compiler-rt all look good, so I'm reasonably confident.
lib/Transforms/Instrumentation/GCOVProfiling.cpp | ||
---|---|---|
588 | Nit: you might try to use EntryBlock, if it still usable after the split. Not so important though. The formatting seems to be off. |
lib/Transforms/Instrumentation/GCOVProfiling.cpp | ||
---|---|---|
588 | It seems that EntryBlock::splitBasicBlock (http://llvm.org/doxygen/BasicBlock_8cpp_source.html#l00401) is creating a new BasicBlock so we must get it from F. |
lib/Transforms/Instrumentation/GCOVProfiling.cpp | ||
---|---|---|
588 | In fact the entry block is not changed by splitBasicBlock. |
Nit: you might try to use EntryBlock, if it still usable after the split. Not so important though.
The formatting seems to be off.