summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2019-08-08 20:25:23 +0000
committerGuozhi Wei <carrot@google.com>2019-08-08 20:25:23 +0000
commit80347c3acc08a653cb4dd64411d86c35ac73011e (patch)
treef44c9a35f5409f87d6e74ed03f5ffca7ff1bf9f5 /llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll
parent8b49e0fd39f946d0d2e6e3979a893b89dec1d9e0 (diff)
downloadbcm5719-llvm-80347c3acc08a653cb4dd64411d86c35ac73011e.tar.gz
bcm5719-llvm-80347c3acc08a653cb4dd64411d86c35ac73011e.zip
[MBP] Disable aggressive loop rotate in plain mode
Patch https://reviews.llvm.org/D43256 introduced more aggressive loop layout optimization which depends on profile information. If profile information is not available, the statically estimated profile information(generated by BranchProbabilityInfo.cpp) is used. If user program doesn't behave as BranchProbabilityInfo.cpp expected, the layout may be worse. To be conservative this patch restores the original layout algorithm in plain mode. But user can still try the aggressive layout optimization with -force-precise-rotation-cost=true. Differential Revision: https://reviews.llvm.org/D65673 llvm-svn: 368339
Diffstat (limited to 'llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll')
-rw-r--r--llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll b/llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll
index cdf2fb05a73..925f880b4fc 100644
--- a/llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll
+++ b/llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll
@@ -5,13 +5,13 @@ define void @foo() {
; Test a nested loop case when profile data is not available.
;
; CHECK-LABEL: foo:
-; CHECK: callq g
-; CHECK: callq h
; CHECK: callq b
-; CHECK: callq e
-; CHECK: callq f
; CHECK: callq c
; CHECK: callq d
+; CHECK: callq e
+; CHECK: callq f
+; CHECK: callq g
+; CHECK: callq h
entry:
br label %header
OpenPOWER on IntegriCloud