[DSE,MSSA] Add use of alloca, to guard against removal in the future.
authorFlorian Hahn <flo@fhahn.com>
Wed, 15 Apr 2020 14:21:30 +0000 (15:21 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 15 Apr 2020 14:23:43 +0000 (15:23 +0100)
commitb5786082568ffca22fc044b79b0e58755c2f931c
treea503f83b83a260215af1bfc8ef17960140cd03dc
parent17198dfaff53a897edfc8d440a91cb9430982dcf
[DSE,MSSA] Add use of alloca, to guard against removal in the future.

Currently the alloca does not escape and all stores and the memset can
be removed. Adding a use of the alloca ensures not all stores are
eliminated.
llvm/test/Transforms/DeadStoreElimination/MSSA/memset-missing-debugloc.ll