[PATCH] D80276: [Alignment] Fix misaligned interleaved loads

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 07:35:05 PDT 2020


gchatelet marked 2 inline comments as done.
gchatelet added inline comments.


================
Comment at: llvm/lib/Target/X86/X86InterleavedAccess.cpp:219
+    Instruction *NewLoad = Builder.CreateAlignedLoad(
+        VecBaseTy, NewBasePtr, NewBasePtr->getPointerAlignment(DL));
     DecomposedVectors.push_back(NewLoad);
----------------
nlopes wrote:
> at least iteration at 0 you could take LI->getAlign(), as it might be larger than ABI alignment. Propagating this larger alignment to subsequent loads requires a bit more code; not sure it's worth it.
Just updated the code, I think it's what you were suggesting.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80276/new/

https://reviews.llvm.org/D80276





More information about the llvm-commits mailing list