[FIX] Ensure SAI objects for exit PHIs
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>
Tue, 5 Apr 2016 13:44:21 +0000 (13:44 +0000)
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>
Tue, 5 Apr 2016 13:44:21 +0000 (13:44 +0000)
commit57c5f0b1c44754a6a07bd70be49e4c4beb878b67
tree31d97692f1e1b65deaac7bae4ee6b8485ef0ec60
parent97b3a762346a877c94543afb3d376f7e69823034
[FIX] Ensure SAI objects for exit PHIs

  If all exiting blocks of a SCoP are error blocks and therefor not
  represented we will not generate accesses and consequently no SAI
  objects for exit PHIs. However, they are needed in the code generation
  to generate the merge PHIs between the original and optimized region.
  With this patch we enusre that the SAI objects for exit PHIs exist
  even if all exiting blocks turn out to be eror blocks.

  This fixes the crash reported in PR27207.

llvm-svn: 265393
polly/lib/Analysis/ScopInfo.cpp
polly/test/Isl/CodeGen/multiple_sai_fro_same_base_address.ll
polly/test/ScopInfo/exit-phi-1.ll
polly/test/ScopInfo/loop-multiexit-succ-cond.ll [new file with mode: 0644]