From b20049251220c1c6708f90d44f70a9c4c67e5e87 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. llvm-svn: 316199 --- 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 }