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.
What if the 2nd store is a larger value type? Wouldn't the first store still be dead?
(Just a comment that, if true, doesn't need to be addresses in this patch.)