This is an archive of the discontinued LLVM Phabricator instance.

[SROA] Clean up some uses of MaybeAlign in SROA.
ClosedPublic

Authored by efriedma on Apr 30 2020, 2:03 PM.

Details

Summary

Use Align instead of using MaybeAlign; all the operations in question have known alignment.

For getSliceAlign() in particular, in the cases where we used to return None, it would be converted back to an Align by IRBuilder, so there's no functional change there.

Split off from D77454.

Diff Detail

Event Timeline

efriedma created this revision.Apr 30 2020, 2:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2020, 2:03 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
jdoerfert accepted this revision.Apr 30 2020, 5:14 PM

LGTM. No test changed, interesting.

This revision is now accepted and ready to land.Apr 30 2020, 5:14 PM
This revision was automatically updated to reflect the committed changes.