This is an archive of the discontinued LLVM Phabricator instance.

[llvm] X86DiscriminateMemOps: insert debug info when missing
ClosedPublic

Authored by mtrofin on May 9 2019, 8:34 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

mtrofin created this revision.May 9 2019, 8:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2019, 8:34 AM
davidxl added inline comments.May 9 2019, 4:18 PM
llvm/lib/Target/X86/X86DiscriminateMemOps.cpp
117 ↗(On Diff #198838)

add a flag here: bool hasDebug = true;
if (!DI) {

hasDebug = false;
 DI = ReferencedDI;

}

ormris removed a subscriber: ormris.May 9 2019, 4:42 PM
mtrofin updated this revision to Diff 198949.May 9 2019, 4:51 PM
  • Feedback
davidxl accepted this revision.May 9 2019, 4:52 PM

lgtm

This revision is now accepted and ready to land.May 9 2019, 4:52 PM
This revision was automatically updated to reflect the committed changes.