This patch adds the support to remove dead stores to stack-allocated locations when -enable-dse-memoryssa=true.
For example:
%A = alloca i32 ... store i32 1, i32* %A ret void
Note that dead stores to stack-allocated locations in end blocks can already be removed when -enable-dse-memoryssa=false.