This is an archive of the discontinued LLVM Phabricator instance.

Supported llvm.dbg.declare intrinsic in inline pass
ClosedPublic

Authored by aaboud on Dec 4 2014, 6:19 AM.

Details

Summary

Inline pass assumed only llvm.dbg.value intrinsic, and did not fix variable debug info metadata for llvm.dbg.declare intrinsic.

Diff Detail

Repository
rL LLVM

Event Timeline

aaboud updated this revision to Diff 16923.Dec 4 2014, 6:19 AM
aaboud retitled this revision from to Supported llvm.dbg.declare intrinsic in inline pass.
aaboud updated this object.
aaboud edited the test plan for this revision. (Show Details)
aaboud added reviewers: eugenis, probinson.
aaboud added a subscriber: Unknown Object (MLST).
dblaikie added inline comments.
lib/Transforms/Utils/InlineFunction.cpp
875 ↗(On Diff #16923)

Move the else if to the same line as the preceeding } to match LLVM style

test/Transforms/Inline/inline_dbg_declare.ll
4 ↗(On Diff #16923)

Could you include the C source in a comment here to demonstrate where this IR came from?

aaboud updated this revision to Diff 16943.Dec 4 2014, 12:04 PM
probinson edited edge metadata.Dec 4 2014, 3:41 PM

Thanks for correcting this oversight! LGTM but dblaikie gets the final
word, I think.
--paulr

Can I get more feedback or approval for committing this fix?

David Blaikie who deferred to "someone who might be more familiar"
which in this case would be Adrian, who gave his LGTM (although he didn't
spell it that way); did you have other questions that haven't been answered?
--paulr

This revision was automatically updated to reflect the committed changes.