From f56176dd98a9f4f7a3c59e1309bf8201d4529f76 Mon Sep 17 00:00:00 2001 From: Nemanja Ivanovic Date: Fri, 20 Oct 2017 00:36:46 +0000 Subject: [PATCH] Disabling the transformation introduced in r315888 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 | 4 ++-- test/CodeGen/PowerPC/ppc-ctr-dead-code.ll | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/PowerPC/PPCMIPeephole.cpp b/lib/Target/PowerPC/PPCMIPeephole.cpp index d135287a845..80b7ac24345 100644 --- a/lib/Target/PowerPC/PPCMIPeephole.cpp +++ b/lib/Target/PowerPC/PPCMIPeephole.cpp @@ -43,12 +43,12 @@ STATISTIC(NumOptADDLIs, "Number of optimized ADD instruction fed by LI"); static cl::opt EnableSExtElimination("ppc-eliminate-signext", cl::desc("enable elimination of sign-extensions"), - cl::init(true), cl::Hidden); + cl::init(false), cl::Hidden); static cl::opt 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&); diff --git a/test/CodeGen/PowerPC/ppc-ctr-dead-code.ll b/test/CodeGen/PowerPC/ppc-ctr-dead-code.ll index 2cfbb2d00df..71755f722cb 100644 --- a/test/CodeGen/PowerPC/ppc-ctr-dead-code.ll +++ b/test/CodeGen/PowerPC/ppc-ctr-dead-code.ll @@ -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 } -- 2.11.0