From eeed1545b200374d1e63778f29040c18c5b07f4e Mon Sep 17 00:00:00 2001 From: Chen Zheng Date: Mon, 1 Nov 2021 04:07:17 +0000 Subject: [PATCH] [PowerPC] turn off chain commoning by default. --- llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp | 2 +- llvm/test/CodeGen/PowerPC/common-chain-aix32.ll | 2 +- llvm/test/CodeGen/PowerPC/common-chain.ll | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp b/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp index 9641a9af5063..b2e0781d81bb 100644 --- a/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp +++ b/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp @@ -125,7 +125,7 @@ static cl::opt PreferUpdateForm("ppc-formprep-prefer-update", cl::desc("prefer update form when ds form is also a update form")); static cl::opt EnableChainCommoning( - "ppc-formprep-chain-commoning", cl::init(true), cl::Hidden, + "ppc-formprep-chain-commoning", cl::init(false), cl::Hidden, cl::desc("Enable chain commoning in PPC loop prepare pass.")); // Sum of following 3 per loop thresholds for all loops can not be larger diff --git a/llvm/test/CodeGen/PowerPC/common-chain-aix32.ll b/llvm/test/CodeGen/PowerPC/common-chain-aix32.ll index 906779970904..71061fef3e39 100644 --- a/llvm/test/CodeGen/PowerPC/common-chain-aix32.ll +++ b/llvm/test/CodeGen/PowerPC/common-chain-aix32.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs \ +; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs -ppc-formprep-chain-commoning \ ; RUN: -mtriple=powerpc-ibm-aix-xcoff -mcpu=pwr9 < %s | FileCheck %s ; Test that on 32 bit AIX, the chain commoning still works without crash. diff --git a/llvm/test/CodeGen/PowerPC/common-chain.ll b/llvm/test/CodeGen/PowerPC/common-chain.ll index 231ea4306e68..595b4836f436 100644 --- a/llvm/test/CodeGen/PowerPC/common-chain.ll +++ b/llvm/test/CodeGen/PowerPC/common-chain.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs \ +; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs -ppc-formprep-chain-commoning \ ; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 < %s | FileCheck %s ; addresses: