This is an archive of the discontinued LLVM Phabricator instance.

[Codegen] If reasonable, materialize clang's `AllocAlignAttr` as llvm's Alignment Attribute on call-site function return value
ClosedPublic

Authored by lebedev.ri on Jan 19 2020, 9:48 AM.

Details

Summary

Much like with the previous patch (D73005) with AssumeAlignedAttr
handling, results in mildly more readable IR,
and will improve test coverage in upcoming patch.

Note that in AllocAlignAttr's case, there is no requirement
for that alignment parameter to end up being an I-C-E.

Diff Detail