[FIX] Adjust the insert point for non-affine region PHIs
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>
Fri, 1 Apr 2016 11:25:47 +0000 (11:25 +0000)
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>
Fri, 1 Apr 2016 11:25:47 +0000 (11:25 +0000)
commit6ba927148dfb5f998c72636fb4a08bf66760d23d
tree875e2a4e44babdd02ed62d34a8870663fb9e2afe
parentb345e0d15c5422bb4049092211f44015ee45d1bc
[FIX] Adjust the insert point for non-affine region PHIs

  If a non-affine region PHI is generated we should not move the insert
  point prior to the synthezised value in the same block as we might
  split that block at the insert point later on. Only if the incoming
  value should be placed in a different block we should change the
  insertion point.

llvm-svn: 265132
polly/lib/CodeGen/BlockGenerators.cpp
polly/test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize-2.ll [new file with mode: 0644]