]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
[AArch64] Redundant store instructions should be removed as dead code
authorJames Molloy <james.molloy@arm.com>
Sat, 27 Sep 2014 17:02:54 +0000 (17:02 +0000)
committerJames Molloy <james.molloy@arm.com>
Sat, 27 Sep 2014 17:02:54 +0000 (17:02 +0000)
commitaada52189ea4120793d8e2818703bef6649d79e4
treeb377808e94ddf0505f1998705a2fea8df6c2e786
parentaf34c3a9952b274d4adcc2cc46aca6ee03f7b24b
[AArch64] Redundant store instructions should be removed as dead code

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.

Patch by David Xu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218569 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/Redundantstore.ll [new file with mode: 0644]