Disable PRE for now. It seems to be breaking llvm-gcc bootstrapping.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 20 Jun 2008 01:01:07 +0000 (01:01 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 20 Jun 2008 01:01:07 +0000 (01:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52518 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVN.cpp

index 88377d51ce793cc385e637869122c52cc8881c91..a0ba73911b7573aa27e5d8d059c2d4a50400f84e 100644 (file)
@@ -42,7 +42,7 @@ STATISTIC(NumGVNInstr, "Number of instructions deleted");
 STATISTIC(NumGVNLoad, "Number of loads deleted");
 STATISTIC(NumGVNPRE, "Number of instructions PRE'd");
 
-static cl::opt<bool> DisablePRE("disable-pre",
+static cl::opt<bool> EnablePRE("enable-pre",
                                 cl::init(false), cl::Hidden);
 
 //===----------------------------------------------------------------------===//
@@ -1290,7 +1290,7 @@ bool GVN::iterateOnFunction(Function &F) {
        DE = df_end(DT.getRootNode()); DI != DE; ++DI)
     changed |= processBlock(*DI);
   
-  if (!DisablePRE)
+  if (!EnablePRE)
     changed |= performPRE(F);
   
   return changed;