This is an archive of the discontinued LLVM Phabricator instance.

PR32288: Describe a bool parameter's DWARF location with a simple register
ClosedPublic

Authored by dblaikie on Mar 16 2017, 5:11 PM.

Details

Summary

There's no need (& a bit incorrect) to mask off the high bits of the
register reference when describing a simple bool value.

Diff Detail

Repository
rL LLVM

Event Timeline

dblaikie created this revision.Mar 16 2017, 5:11 PM
aprantl accepted this revision.Mar 17 2017, 8:28 AM

Took me a while to find the functional change amidst the refactoring :-)
As discussed in the PR, this LGTM, thanks!
One inline comment about a comment.

lib/Transforms/Utils/Local.cpp
1118 ↗(On Diff #92087)

Does this comment still match our understanding?
Particularly the The fragment we're describing will always be smaller than the variable size bit.

This revision is now accepted and ready to land.Mar 17 2017, 8:28 AM
This revision was automatically updated to reflect the committed changes.