Skip to content

Commit 6599484

Browse files
author
git apple-llvm automerger
committed
Merge commit '70193b21d18b' from llvm.org/master into apple/master
2 parents 374275f + 70193b2 commit 6599484

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

llvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessNoProfileData.mir

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
# NOTE: This test verifies disable/enable instruction hoisting to hot blocks based on non-profile data
2-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=all -block-freq-ratio-threshold=100 %s -o - | FileCheck %s --check-prefix=CHECK-NO-HOIST
3-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=all -block-freq-ratio-threshold=100000000 %s -o - | FileCheck %s --check-prefix=CHECK-HOIST
4-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=pgo -block-freq-ratio-threshold=100 %s -o - | FileCheck %s --check-prefix=CHECK-HOIST
5-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=none -block-freq-ratio-threshold=100 %s -o - | FileCheck %s --check-prefix=CHECK-HOIST
1+
# NOTE: This test verifies disable/enable instruction hoisting to hot blocks
2+
# based on non-profile data
3+
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu \
4+
# RUN: -verify-machineinstrs -disable-hoisting-to-hotter-blocks=all \
5+
# RUN: -block-freq-ratio-threshold=100 %s -o - | FileCheck %s \
6+
# RUN: --check-prefix=CHECK-NO-HOIST
7+
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu \
8+
# RUN: -verify-machineinstrs -disable-hoisting-to-hotter-blocks=all \
9+
# RUN: -block-freq-ratio-threshold=100000000 %s -o - | FileCheck %s \
10+
# RUN: --check-prefix=CHECK-HOIST
11+
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu \
12+
# RUN: -verify-machineinstrs -disable-hoisting-to-hotter-blocks=pgo \
13+
# RUN: -block-freq-ratio-threshold=100 %s -o - | FileCheck %s \
14+
# RUN: --check-prefix=CHECK-HOIST
15+
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu \
16+
# RUN: -verify-machineinstrs -disable-hoisting-to-hotter-blocks=none \
17+
# RUN: -block-freq-ratio-threshold=100 %s -o - | FileCheck %s \
18+
# RUN: --check-prefix=CHECK-HOIST
619

720
--- |
821
target datalayout = "e-m:e-i64:64-n32:64"
@@ -119,6 +132,7 @@ body: |
119132
bb.1.for.body.lr.ph:
120133
successors: %bb.3(0x80000000)
121134
135+
INLINEASM &"#NOTHING", 1, 12, implicit-def early-clobber $r2
122136
%11:crrc = CMPWI %7, 10
123137
%0:crbitrc = COPY %11.sub_gt
124138
%10:gprc = LI 0

llvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessProfileData.mir

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
# NOTE: This test verifies disable/enable instruction hoisting to hot blocks based on profile data
2-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=pgo -block-freq-ratio-threshold=100 %s -o - | FileCheck %s --check-prefix=CHECK-NO-HOIST
3-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=pgo -block-freq-ratio-threshold=100000000 %s -o - | FileCheck %s --check-prefix=CHECK-HOIST
4-
# RUN: llc -run-pass early-machinelicm -mtriple=powerpc64le-unknown-linux-gnu -disable-hoisting-to-hotter-blocks=none -block-freq-ratio-threshold=100 %s -o - | FileCheck %s --check-prefix=CHECK-HOIST
1+
# NOTE: This test verifies disable/enable instruction hoisting to hot blocks
2+
# based on profile data
3+
# RUN: llc -run-pass early-machinelicm -verify-machineinstrs \
4+
# RUN: -mtriple=powerpc64le-unknown-linux-gnu \
5+
# RUN: -disable-hoisting-to-hotter-blocks=pgo \
6+
# RUN: -block-freq-ratio-threshold=100 %s -o - | FileCheck %s \
7+
# RUN: --check-prefix=CHECK-NO-HOIST
8+
# RUN: llc -run-pass early-machinelicm -verify-machineinstrs \
9+
# RUN: -mtriple=powerpc64le-unknown-linux-gnu \
10+
# RUN: -disable-hoisting-to-hotter-blocks=pgo \
11+
# RUN: -block-freq-ratio-threshold=100000000 %s -o - | FileCheck %s \
12+
# RUN: --check-prefix=CHECK-HOIST
13+
# RUN: llc -run-pass early-machinelicm -verify-machineinstrs \
14+
# RUN: -mtriple=powerpc64le-unknown-linux-gnu \
15+
# RUN: -disable-hoisting-to-hotter-blocks=none \
16+
# RUN: -block-freq-ratio-threshold=100 %s -o - | FileCheck %s \
17+
# RUN: --check-prefix=CHECK-HOIST
518

619
--- |
720
target datalayout = "e-m:e-i64:64-n32:64"
@@ -165,6 +178,7 @@ body: |
165178
bb.1.for.body.lr.ph:
166179
successors: %bb.3(0x80000000)
167180
181+
INLINEASM &"#NOTHING", 1, 12, implicit-def early-clobber $r2, !31
168182
%11:crrc = CMPWI %7, 10
169183
%0:crbitrc = COPY %11.sub_gt
170184
%10:gprc = LI 0

0 commit comments

Comments
 (0)