This is an archive of the discontinued LLVM Phabricator instance.

[Alignment][NFC] Use Align with CreateAlignedStore
ClosedPublic

Authored by gchatelet on Jan 23 2020, 7:19 AM.

Details

Summary

This is 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.Jan 23 2020, 7:19 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
gchatelet updated this revision to Diff 239903.Jan 23 2020, 7:33 AM
  • Improving DataLayout
courbet accepted this revision.Jan 23 2020, 7:47 AM
courbet added inline comments.
llvm/include/llvm/IR/DataLayout.h
504

FIXME

525

FIXME

llvm/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
534

You can use a typed variable here.

llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
1223

I don;t think you need the MaybeAlign here

1271

ditto

This revision is now accepted and ready to land.Jan 23 2020, 7:47 AM
gchatelet updated this revision to Diff 239906.Jan 23 2020, 7:58 AM
gchatelet marked 5 inline comments as done.
  • Address comments
This revision was automatically updated to reflect the committed changes.