Enable GlobalsAA by default
authorJames Molloy <james.molloy@arm.com>
Thu, 10 Sep 2015 10:22:20 +0000 (10:22 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 10 Sep 2015 10:22:20 +0000 (10:22 +0000)
This can give significant improvements to alias analysis in some situations, and improves its testing coverage in all situations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247264 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/PassManagerBuilder.cpp

index fcb62db06e93f7c5c7bcd3db58006cbab446cd31..6b113ff9b7f3a4c0319a0abbc16cbaea0297641a 100644 (file)
@@ -95,7 +95,7 @@ static cl::opt<bool> EnableLoopDistribute(
     cl::desc("Enable the new, experimental LoopDistribution Pass"));
 
 static cl::opt<bool> EnableNonLTOGlobalsModRef(
-    "enable-non-lto-gmr", cl::init(false), cl::Hidden,
+    "enable-non-lto-gmr", cl::init(true), cl::Hidden,
     cl::desc(
         "Enable the GlobalsModRef AliasAnalysis outside of the LTO pipeline."));