summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGeneration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/CodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGeneration.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp
index 60072fdacbb..b92e56900d6 100644
--- a/polly/lib/CodeGeneration.cpp
+++ b/polly/lib/CodeGeneration.cpp
@@ -78,12 +78,6 @@ Aligned("enable-polly-aligned",
cl::value_desc("OpenMP code generation enabled if true"),
cl::init(false));
-static cl::opt<std::string>
-CodegenOnly("polly-codegen-only",
- cl::desc("Codegen only this function"), cl::Hidden,
- cl::value_desc("The function name to codegen"),
- cl::ValueRequired, cl::init(""));
-
typedef DenseMap<const Value*, Value*> ValueMapT;
typedef DenseMap<const char*, Value*> CharMapT;
typedef std::vector<ValueMapT> VectorValueMapT;
@@ -1354,6 +1348,7 @@ class CodeGeneration : public ScopPass {
// Update RegionInfo.
splitBlock = region->getEntry();
region->replaceEntry(newBlock);
+ RI->setRegionFor(newBlock, region);
} else {
RI->setRegionFor(newBlock, region->getParent());
splitBlock = newBlock;
@@ -1428,13 +1423,6 @@ class CodeGeneration : public ScopPass {
parallelLoops.clear();
- Function *F = region->getEntry()->getParent();
- if (CodegenOnly != "" && CodegenOnly != F->getNameStr()) {
- errs() << "Codegenerating only function '" << CodegenOnly
- << "' skipping '" << F->getNameStr() << "' \n";
- return false;
- }
-
assert(region->isSimple() && "Only simple regions are supported");
// In the CFG and we generate next to original code of the Scop the
OpenPOWER on IntegriCloud