[DeLICM] Partial writes for PHIs.
commitda66e5a2727c72256a6a350921cfdd8db36e26e8
authorMichael Kruse <llvm@meinersbur.de>
Wed, 24 May 2017 15:23:06 +0000 (24 15:23 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 24 May 2017 15:23:06 +0000 (24 15:23 +0000)
tree5630dbe012fcaacf33fe9c38363082bf1853d69b
parent3a82151a98615376d4e66c9a5c67f3123f3cd554
[DeLICM] Partial writes for PHIs.

Enable the use for partial writes for PHI write accesses with a switch.
This simply skips the test for whether a PHI write would be partial.

The analog test for partial value writes also protects for partial reads
which we do not support (yet). It is possible to test for partial reads
separately such that we could skip the partial write check as well. In
case this shows up to be useful, I can implement it as well.

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

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@303762 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transform/DeLICM.cpp
test/DeLICM/reduction.ll [copied from test/DeLICM/reduction_looprotate_gvnpre.ll with 60% similarity]
test/DeLICM/reduction_looprotate_gvnpre.ll
test/DeLICM/reduction_overapproximate.ll