Fix DomTree preservation for generated subregions.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 25 Feb 2016 14:08:48 +0000 (14:08 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 25 Feb 2016 14:08:48 +0000 (14:08 +0000)
commitf33c125dd253981c6ff2bb9505e1d98682c3e846
tree14df723fc2eaa76ee3c39492bcaa687354de9ba7
parent8c83078449b811af5a497faa1637b94f6950fdd2
Fix DomTree preservation for generated subregions.

The generated dedicated subregion exit block was assumed to have the same
dominance relation as the original exit block. This is incorrect if the exit
block receives other edges than only from the subregion, which results in that
e.g. the subregion's entry block does not dominate the exit block.

llvm-svn: 261865
polly/lib/CodeGen/BlockGenerators.cpp
polly/test/Isl/CodeGen/region_exiting-domtree.ll [new file with mode: 0644]