[PATCH] D76674: [Attributor] Derive better alignment for accessed pointers
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 24 01:35:42 PDT 2020
jdoerfert added a comment.
In D76674#1938566 <https://reviews.llvm.org/D76674#1938566>, @lebedev.ri wrote:
> In D76674#1938558 <https://reviews.llvm.org/D76674#1938558>, @jdoerfert wrote:
>
> > In D76674#1938540 <https://reviews.llvm.org/D76674#1938540>, @lebedev.ri wrote:
> >
> > > That's the patch i showed, yes :)
> > > I'm not sure this is sound.
> > > Given underaligned load, we can't just take max(align of load, abi alignment)
> >
> >
> > Hm, so we can only look at the abi if the load alignment is unspecified?
>
>
> I strongly believe so, otherwise there would be no point in specifying an alignment
> smaller than the abi alignment on load/store, and no way to do underaligned loads/stores,
> which is obviously not the case.
Agreed. We even had a test case(`Transforms/Attributor/ArgumentPromotion/alignment.ll`). Fixed the code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76674/new/
https://reviews.llvm.org/D76674
More information about the llvm-commits
mailing list