This is an archive of the discontinued LLVM Phabricator instance.

Change how finalizeBundle selects debug location for the BUNDLE instruction
ClosedPublic

Authored by bjope on Aug 13 2018, 8:22 AM.

Details

Summary

Previously a BUNDLE instruction inherited the DebugLoc from the
first instruction in the bundle, even if that DebugLoc had no
DILocation. With this commit this is changed into selecting the
first DebugLoc that has a DILocation, by searching among the
bundled instructions.

The idea is to reduce amount of bundles that are lacking
debug locations.

Diff Detail

Repository
rL LLVM

Event Timeline

bjope created this revision.Aug 13 2018, 8:22 AM
mattd added a subscriber: mattd.Aug 16 2018, 3:35 PM

I like this change! Is there ever the case where there would be two different DILocations within a bundle? Perhaps that questions doesn't matter since bundles are treated as a single item.

JDevlieghere added a subscriber: JDevlieghere.

This LGTM!

This revision is now accepted and ready to land.Aug 18 2018, 9:19 AM
This revision was automatically updated to reflect the committed changes.