This is an archive of the discontinued LLVM Phabricator instance.

Preserve the debug location when sinking compare instructions
ClosedPublic

Authored by wolfgangp on Sep 15 2016, 2:50 PM.

Details

Summary

When the CodeGenPrepare pass sinks a compare instruction into the basic block of a user, it should preserve its debug location. Not doing so negatively affects source line attribution for debugging and AutoFDO.

Patch by Andrea Di Biagio

Diff Detail

Repository
rL LLVM

Event Timeline

wolfgangp updated this revision to Diff 71557.Sep 15 2016, 2:50 PM
wolfgangp retitled this revision from to Preserve the debug location when sinking compare instructions.
wolfgangp updated this object.
wolfgangp added reviewers: aprantl, dblaikie.
wolfgangp added subscribers: llvm-commits, andreadb.
aprantl accepted this revision.Oct 3 2016, 6:51 PM
aprantl edited edge metadata.

Seems reasonable to me. Thanks!

This revision is now accepted and ready to land.Oct 3 2016, 6:51 PM
This revision was automatically updated to reflect the committed changes.