OSDN Git Service

Disabling the transformation introduced in r315888
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 20 Oct 2017 00:36:46 +0000 (00:36 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 20 Oct 2017 00:36:46 +0000 (00:36 +0000)
The commit at https://reviews.llvm.org/rL315888 is causing some failures
with internal testing. Disabling this code until we can resolve the issues.

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

lib/Target/PowerPC/PPCMIPeephole.cpp
test/CodeGen/PowerPC/ppc-ctr-dead-code.ll

index d135287..80b7ac2 100644 (file)
@@ -43,12 +43,12 @@ STATISTIC(NumOptADDLIs, "Number of optimized ADD instruction fed by LI");
 static cl::opt<bool>
     EnableSExtElimination("ppc-eliminate-signext",
                           cl::desc("enable elimination of sign-extensions"),
-                          cl::init(true), cl::Hidden);
+                          cl::init(false), cl::Hidden);
 
 static cl::opt<bool>
     EnableZExtElimination("ppc-eliminate-zeroext",
                           cl::desc("enable elimination of zero-extensions"),
-                          cl::init(true), cl::Hidden);
+                          cl::init(false), cl::Hidden);
 
 namespace llvm {
   void initializePPCMIPeepholePass(PassRegistry&);
index 2cfbb2d..71755f7 100644 (file)
@@ -31,7 +31,7 @@ cleanup:                                          ; preds = %for.body, %for.cond
 ; CHECK-LABEL: limit_loop
 ; CHECK: mtctr
 ; CHECK-NOT: addi {{[0-9]+}}, {{[0-9]+}}, 1
-; CHECK: bdzlr
+; CHECK: bdnz
 ; CHECK: blr
 }