two changes to DSE that shouldn't affect anything:
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 00:01:19 +0000 (00:01 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 00:01:19 +0000 (00:01 +0000)
commit0f53f592ad8b81bb5e28e0d0e8b9461ddfa3ae01
treeebd4a3941422eed11ba0d7236450843660980325
parent8e0c7b52877983b4838e54e233449912fc1a2325
two changes to DSE that shouldn't affect anything:

1. Don't bother trying to optimize:

lifetime.end(ptr)
store(ptr)

as it is undefined, and therefore shouldn't exist.

2. Move the 'storing a loaded pointer' xform up, simplifying
  the may-aliased store code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120359 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp