From f4cc67acb66c33f006be1e05686eafe5e76f2b36 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 18 Dec 2017 18:56:57 +0000 Subject: [PATCH] [PPC] Disable reg+reg to reg+imm transformation. It creates invalid instructions. PR35688. llvm-svn: 321010 --- llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp index 27ded63bf641..a2640727f813 100644 --- a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp +++ b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp @@ -55,7 +55,7 @@ FixedPointRegToImm("ppc-reg-to-imm-fixed-point", cl::Hidden, cl::init(true), "convert reg-reg instructions to reg-imm")); static cl::opt -ConvertRegReg("ppc-convert-rr-to-ri", cl::Hidden, cl::init(true), +ConvertRegReg("ppc-convert-rr-to-ri", cl::Hidden, cl::init(false), cl::desc("Convert eligible reg+reg instructions to reg+imm")); static cl::opt