ScopDectect: Allow memory accesses with different element types by default (try 3)
authorTobias Grosser <tobias@grosser.es>
Tue, 16 Feb 2016 14:37:24 +0000 (14:37 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 16 Feb 2016 14:37:24 +0000 (14:37 +0000)
First support for this feature was committed in r259784. Support for
loop invariant load hoisting with different types was added by
Johannes Doerfert in r260045 and r260886.

llvm-svn: 260965

polly/lib/Analysis/ScopDetection.cpp

index 5bd55d7..b044f19 100644 (file)
@@ -124,7 +124,7 @@ static cl::opt<bool>
 static cl::opt<bool> AllowDifferentTypes(
     "polly-allow-differing-element-types",
     cl::desc("Allow different element types for array accesses"), cl::Hidden,
-    cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory));
+    cl::init(true), cl::ZeroOrMore, cl::cat(PollyCategory));
 
 static cl::opt<bool>
     AllowNonAffine("polly-allow-nonaffine",