This is an archive of the discontinued LLVM Phabricator instance.

SpeculativeExecution: fix incorrect debug info move
ClosedPublic

Authored by dfukalov on Jun 12 2020, 4:44 AM.

Details

Summary

Debug info related instructions got zero cost so hoisted unconditionally

Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=46267

Diff Detail

Event Timeline

dfukalov created this revision.Jun 12 2020, 4:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2020, 4:44 AM
aprantl added inline comments.Jun 12 2020, 10:36 AM
llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
259

Please always use full sentences with a . at the end in comments.

268

Could you please add a comment as to why it shouldn't be moved? That will probably be more helpful to the reader.

269

processing

dfukalov updated this revision to Diff 270543.Jun 12 2020, 4:29 PM

updated comments

dfukalov marked 3 inline comments as done.Jun 12 2020, 4:32 PM
aprantl accepted this revision.Jun 26 2020, 10:14 AM

I'm not super confident that this won't have any unforeseen consequences, but the results in the testcase look right to me.

This revision is now accepted and ready to land.Jun 26 2020, 10:14 AM
This revision was automatically updated to reflect the committed changes.