[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
6 files changed