[PATCH] [AArch64]Redundant store instructions should be removed as dead code

Xu Jiangwei David.Xu at arm.com
Tue Sep 23 00:01:09 PDT 2014


Hi t.p.northover, Jiangning,

If there is a store followed by a store with the same value to the same location, then the store is dead/noop. It can be removed.

This problem is found in spec2006-197.parser.

For example,
stur	w10, [x11, #-4]
stur	w10, [x11, #-4]
Then one of the two stur instructions can be removed.

http://reviews.llvm.org/D5455

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/Redundantstore.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5455.13969.patch
Type: text/x-patch
Size: 2036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/3a8674a8/attachment.bin>


More information about the llvm-commits mailing list