[PATCH] D71295: [Matrix] Use !alias.scope and !noalias for columnwise loads/stores. (WIP)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 12:37:57 PST 2019


fhahn created this revision.
fhahn added reviewers: anemet, Gerolf, hfinkel, andrew.w.kaylor, LuoYuanke.
Herald added subscribers: tschuett, hiraditya.
Herald added a project: LLVM.

When using the same pointer using the stride for with columnwise.load
and columnwise.store, we know that the columnwise memory operations
do not alias any other column access that was generated while lowering
a columnwise.load or columnwise.store. This uses the fact that the
stride must be >= number of elements loaded.

TODO:

- this is only safe when the accesses use the same number of rows


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71295

Files:
  llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
  llvm/test/Transforms/LowerMatrixIntrinsics/strided-load-store-alias-metadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71295.233174.patch
Type: text/x-patch
Size: 11675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191210/77e14f44/attachment.bin>


More information about the llvm-commits mailing list