Enable scalar and PHI code generation for Polly
authorTobias Grosser <tobias@grosser.es>
Sat, 23 May 2015 03:34:41 +0000 (03:34 +0000)
committerTobias Grosser <tobias@grosser.es>
Sat, 23 May 2015 03:34:41 +0000 (03:34 +0000)
The feature itself has been committed by Johannes in r238070. As this is the
way forward, we now enable it to ensure we get test coverage.

Thank you Johannes for this nice work!

llvm-svn: 238088

polly/lib/Analysis/ScopDetection.cpp
polly/lib/Transform/IndependentBlocks.cpp

index 88f482b..a297bc2 100644 (file)
@@ -170,7 +170,7 @@ static cl::opt<bool, true> XPollyModelPHINodes(
     "polly-model-phi-nodes",
     cl::desc("Allow PHI nodes in the input [Unsafe with code-generation!]."),
     cl::location(PollyModelPHINodes), cl::Hidden, cl::ZeroOrMore,
-    cl::init(false), cl::cat(PollyCategory));
+    cl::init(true), cl::cat(PollyCategory));
 
 bool polly::PollyModelPHINodes = false;
 bool polly::PollyTrackFailures = false;
index 8a0c0f4..c7b449a 100644 (file)
@@ -35,7 +35,7 @@ using namespace llvm;
 static cl::opt<bool> DisableIntraScopScalarToArray(
     "disable-polly-intra-scop-scalar-to-array",
     cl::desc("Do not rewrite scalar to array to generate independent blocks"),
-    cl::Hidden, cl::init(false), cl::cat(PollyCategory));
+    cl::Hidden, cl::init(true), cl::cat(PollyCategory));
 
 namespace {
 struct IndependentBlocks : public FunctionPass {