[llvm] eeed154 - [PowerPC] turn off chain commoning by default.
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 31 21:11:20 PDT 2021
Author: Chen Zheng
Date: 2021-11-01T04:11:10Z
New Revision: eeed1545b200374d1e63778f29040c18c5b07f4e
URL: https://github.com/llvm/llvm-project/commit/eeed1545b200374d1e63778f29040c18c5b07f4e
DIFF: https://github.com/llvm/llvm-project/commit/eeed1545b200374d1e63778f29040c18c5b07f4e.diff
LOG: [PowerPC] turn off chain commoning by default.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
llvm/test/CodeGen/PowerPC/common-chain-aix32.ll
llvm/test/CodeGen/PowerPC/common-chain.ll
Removed:
################################################################################
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<bool> PreferUpdateForm("ppc-formprep-prefer-update",
cl::desc("prefer update form when ds form is also a update form"));
static cl::opt<bool> 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:
More information about the llvm-commits
mailing list