Assign regions to all BBs from CodeGeneration
authorMichael Kruse <llvm@meinersbur.de>
Tue, 11 Aug 2015 14:47:37 +0000 (14:47 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 11 Aug 2015 14:47:37 +0000 (14:47 +0000)
commit9c483c5834eeb9d560a0526286784327461a6792
treee670e219bf78f33d0c25069131faf63cc94586f8
parent25b2601bcad890725ac2ea9b18552e478493e8fb
Assign regions to all BBs from CodeGeneration

In order to have a valid region analysis, we assign all newly created blocks to the parent of the scop's region. This is correct for any pre-existing regions (including the scop's region and its parent), but does not discover any region inside the generated code. For Polly this is not necessary because we do not want to re-run Polly on its own generated code anyway.

Reviewers: grosser

Part of Differential Revision: http://reviews.llvm.org/D11867

llvm-svn: 244608
polly/lib/CodeGen/CodeGeneration.cpp