[ZoneAlgo] Fix PHI inconsistency in invalid contexts.
commit84cd65e43dce3a20e7d66349a45e4885c22534fe
authorMichael Kruse <llvm@meinersbur.de>
Fri, 10 May 2019 18:38:13 +0000 (10 18:38 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 10 May 2019 18:38:13 +0000 (10 18:38 +0000)
tree34370c564402f71c3fa514ede9a90b0b56cd25d6
parentb14a757a51365ac02a778b87f6bceb958ed4a0bf
[ZoneAlgo] Fix PHI inconsistency in invalid contexts.

PHI nodes (reads) could point to multiple instances of predecessor
blocks (PHI writes) when in an invalid context. Fix by removing PHI
instances that are in an invalid or ouside assumed context.

This fixes llvm.org/PR41656.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@360454 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/Support/ISLTools.h
lib/Support/ISLTools.cpp
lib/Transform/ZoneAlgo.cpp
test/DeLICM/pr41656.ll [new file with mode: 0644]
test/DeLICM/reduction_looprotate_hoisted.ll
test/ScopInfo/stmt_with_read_but_without_sideffect.ll