This is an archive of the discontinued LLVM Phabricator instance.

[PGO][CHR] A bug fix.
ClosedPublic

Authored by hjyamauchi on May 1 2019, 2:48 PM.

Details

Summary

Fix a transformation bug where two scopes share a common instrution to hoist.

Diff Detail

Event Timeline

hjyamauchi created this revision.May 1 2019, 2:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2019, 2:48 PM
davidxl accepted this revision.May 1 2019, 2:58 PM

lgtm

lib/Transforms/Instrumentation/ControlHeightReduction.cpp
1444

why is this check not kicking in?

This revision is now accepted and ready to land.May 1 2019, 2:58 PM
hjyamauchi marked an inline comment as done.May 1 2019, 3:09 PM
hjyamauchi added inline comments.
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
1444

This check is to avoid hoisting the same instruction more than once. So, it won't detect this case.

hjyamauchi marked an inline comment as done.May 1 2019, 3:15 PM
hjyamauchi added inline comments.
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
1444

Typo: insert *per scope* in above sentence.

This revision was automatically updated to reflect the committed changes.