[PATCH] D30703: [DSE] Merge stores when the later store only writes to memory locations the early store also wrote to.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 09:14:01 PDT 2017


spatel updated this revision to Diff 116562.
spatel added a comment.

Patch updated:

1. Break from the inner loop after we successfully merge (kill) the earlier and later stores.
2. Add test reduced from PR34074 that was crashing.


https://reviews.llvm.org/D30703

Files:
  lib/Transforms/Scalar/DeadStoreElimination.cpp
  test/Transforms/DeadStoreElimination/PartialStore.ll
  test/Transforms/DeadStoreElimination/combined-partial-overwrites.ll
  test/Transforms/DeadStoreElimination/merge-stores-big-endian.ll
  test/Transforms/DeadStoreElimination/merge-stores.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30703.116562.patch
Type: text/x-patch
Size: 24041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/443cc80f/attachment.bin>


More information about the llvm-commits mailing list