This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Maintain DI for sunken bitcasts
ClosedPublic

Authored by ergawy on May 23 2018, 2:39 PM.

Details

Summary

When a bitcast is being sunk in -codegenprepare pass, its DI wasn't
copied over to the newly created instruction. This patch fixes that
bug.

Diff Detail

Repository
rL LLVM

Event Timeline

ergawy created this revision.May 23 2018, 2:39 PM
vsk accepted this revision.May 23 2018, 2:46 PM
vsk added a subscriber: vsk.

LGTM with a nitpick. Thanks!

test/DebugInfo/sink-bitcast-di.ll
1 ↗(On Diff #148288)

This test doesn't rely on the output of -check-debugify, so you can just use "-debugify" here.

This revision is now accepted and ready to land.May 23 2018, 2:46 PM
This revision was automatically updated to reflect the committed changes.