[Simplify] Remove identical write removal. NFC.
commit484e720f982e3dd35b296d466811305a51bb8e40
authorMichael Kruse <llvm@meinersbur.de>
Sat, 13 May 2017 12:20:57 +0000 (13 12:20 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Sat, 13 May 2017 12:20:57 +0000 (13 12:20 +0000)
treee7cb1ee25545fa99ac14a891c2f4331d2fb5b228
parentad5ef16e38a7809a0c9d6988f8e2a248385f62a0
[Simplify] Remove identical write removal. NFC.

Removal of overwritten writes currently encompasses all the cases
of the identical write removal.

There is an observable behavioral change in that the last, instead
of the first, MemoryAccess is kept. This should not affect the
generated code, however.

Differential Revision: https://reviews.llvm.org/D33143

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@302987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transform/Simplify.cpp
test/Simplify/overwritten_3phi.ll [moved from test/Simplify/identical_3phi.ll with 88% similarity]
test/Simplify/overwritten_3phi___%for---%return.jscop [moved from test/Simplify/identical_3phi___%for---%return.jscop with 100% similarity]
test/Simplify/overwritten_3phi___%for---%return.jscop.transformed [moved from test/Simplify/identical_3phi___%for---%return.jscop.transformed with 100% similarity]
test/Simplify/overwritten_scalar.ll [moved from test/Simplify/identical.ll with 86% similarity]
test/Simplify/overwritten_scalar___%for---%return.jscop [moved from test/Simplify/identical___%for---%return.jscop with 100% similarity]
test/Simplify/overwritten_scalar___%for---%return.jscop.transformed [moved from test/Simplify/identical___%for---%return.jscop.transformed with 100% similarity]