Revert r341932 "[ARM] Enable ARMCodeGenPrepare by default"
authorHans Wennborg <hans@hanshq.net>
Mon, 24 Sep 2018 11:40:07 +0000 (11:40 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 24 Sep 2018 11:40:07 +0000 (11:40 +0000)
This caused miscompilation of WebRTC for Android: PR39060.

> We've had the pass enabled downstream for a couple of weeks and it
> seems to be okay, so enable it by default.
>
> Differential Revision: https://reviews.llvm.org/D51920

llvm-svn: 342873

llvm/lib/Target/ARM/ARMCodeGenPrepare.cpp

index a1241b7..4b73636 100644 (file)
@@ -42,7 +42,7 @@
 using namespace llvm;
 
 static cl::opt<bool>
-DisableCGP("arm-disable-cgp", cl::Hidden, cl::init(false),
+DisableCGP("arm-disable-cgp", cl::Hidden, cl::init(true),
            cl::desc("Disable ARM specific CodeGenPrepare pass"));
 
 static cl::opt<bool>