This is an archive of the discontinued LLVM Phabricator instance.

[TailDuplicator] Maintain DebugLoc for branch instructions
ClosedPublic

Authored by twoh on Feb 15 2017, 11:38 PM.

Details

Summary

Existing implementation of duplicateSimpleBB function drops DebugLoc metadata of branch instructions during the transformation. This patch addresses this issue by making newly created branch instructions to keep the metadata of replaced branch instructions.

Diff Detail

Repository
rL LLVM

Event Timeline

twoh created this revision.Feb 15 2017, 11:38 PM
twoh updated this revision to Diff 88661.Feb 15 2017, 11:45 PM

nit: auto

twoh added a comment.Feb 22 2017, 10:21 PM

Friendly Ping. Thanks!

dblaikie accepted this revision.Feb 27 2017, 9:51 AM
dblaikie added a subscriber: dblaikie.

Seems plausible, though I'm not especially familiar with this optimization, etc.

This revision is now accepted and ready to land.Feb 27 2017, 9:51 AM
This revision was automatically updated to reflect the committed changes.