-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Coverage] getMaxBitmapSize: Scan max(BitmapIdx)
instead of the last Decision
#78963
Conversation
Note that `<=` is used insted of `<`, because `BitmapIdx == 0` is valid and `MaxbitmapID` is `unsigned`. `BitmapIdx` is unique in the record.
Let me push the testcase in advance of the fix, to confirm failure. |
The record of this testcase is:
The current implementation picks up |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://lab.llvm.org/buildbot/#/builders/16/builds/60018
I'll rework. |
Will the new test fail when the profile reader is built with zlib support? :( |
In
CoverageMapping.cpp:getMaxBitmapSize()
,this assumed that the last
Decision
has the maxmumBitmapIdx
.Let it scan
max(BitmapIdx)
.Note that
<=
is used insted of<
, becauseBitmapIdx == 0
is validand
MaxbitmapID
isunsigned
.BitmapIdx
is unique in the record.Fixes #78922