This is an archive of the discontinued LLVM Phabricator instance.

[Alignment][NFC] Migrate PPC, X86 and XCore backends to Align
ClosedPublic

Authored by gchatelet on Jun 29 2020, 8:53 AM.

Details

Summary

This patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Diff Detail

Event Timeline

gchatelet created this revision.Jun 29 2020, 8:53 AM
gchatelet marked 4 inline comments as done.Jun 29 2020, 9:03 AM
gchatelet added inline comments.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
1403

This may seem like not NFC but it is.
This is because MaxAlign>=1 by definition and so it doesn't matter if EltAlign is 0 or 1 originally for the statement below:

if (EltAlign > MaxAlign)
  MaxAlign = EltAlign;
1409

ditto

llvm/lib/Target/X86/X86ISelLowering.cpp
2197

ditto

2203

ditto

courbet accepted this revision.Jun 30 2020, 12:25 AM
This revision is now accepted and ready to land.Jun 30 2020, 12:25 AM
This revision was automatically updated to reflect the committed changes.