This is an archive of the discontinued LLVM Phabricator instance.

Skip over prefetches
ClosedPublic

Authored by mtrofin on May 10 2019, 8:29 AM.

Details

Summary

Skip over prefetches when assigning debug info to instructions with memory operands. This way, the debug info is stable after instrumenting a binary with prefetches, allowing for iterative profiling and instrumentation.

Diff Detail

Repository
rL LLVM

Event Timeline

mtrofin created this revision.May 10 2019, 8:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2019, 8:29 AM
mtrofin edited the summary of this revision. (Show Details)May 10 2019, 8:31 AM
mtrofin added a reviewer: davidxl.
davidxl added inline comments.May 10 2019, 8:46 AM
llvm/test/CodeGen/X86/discriminate-mem-ops-skip-pfetch.ll
1 ↗(On Diff #199024)

perhaps also add a test without skipping.

ormris removed a subscriber: ormris.May 10 2019, 9:30 AM
mtrofin updated this revision to Diff 199063.May 10 2019, 12:59 PM
  • Negative test

it is probably better to put the tests in the same file with different check prefixes.

mtrofin updated this revision to Diff 199076.May 10 2019, 1:38 PM
  • Moved tests together
davidxl accepted this revision.May 10 2019, 1:42 PM

lgtm

This revision is now accepted and ready to land.May 10 2019, 1:42 PM
This revision was automatically updated to reflect the committed changes.