[PATCH] D71828: [InstCombine] Convert vector store to scalar store if only one element updated

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 29 23:30:39 PST 2019


qiucf updated this revision to Diff 235556.
qiucf added a comment.

- Create `inbounds` store
- Strip casted pointer before comparison
- Make sure load and store belong to the same BB
- Keep `nontemporal` metadata of store


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71828

Files:
  llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  llvm/test/Transforms/InstCombine/load-insert-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71828.235556.patch
Type: text/x-patch
Size: 4986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191230/4e8705b4/attachment-0001.bin>


More information about the llvm-commits mailing list