This is an archive of the discontinued LLVM Phabricator instance.

[Alignment] TargetLowering::hasPairedLoad must use Align for RequiredAlignment
ClosedPublic

Authored by gchatelet on Jul 1 2020, 6:36 AM.

Details

Summary

As per documentation of hasPairLoad:
"RequiredAlignment gives the minimal alignment constraints that must be met to be able to select this paired load."
In this sense, 0 is strictly equivalent to 1. We make this obvious by using Align instead of unsigned.
There is only one implementor of this interface.

Diff Detail

Event Timeline

gchatelet created this revision.Jul 1 2020, 6:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2020, 6:36 AM
courbet accepted this revision.Jul 1 2020, 7:20 AM
This revision is now accepted and ready to land.Jul 1 2020, 7:20 AM
This revision was automatically updated to reflect the committed changes.