[ScopDectect] Allow memory accesses with different element types by default
authorTobias Grosser <tobias@grosser.es>
Sun, 14 Feb 2016 19:11:16 +0000 (19:11 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 14 Feb 2016 19:11:16 +0000 (19:11 +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. This fixed the last known bug.

llvm-svn: 260853

polly/lib/Analysis/ScopDetection.cpp

index 3d24596..0e10fc1 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",