From 80347c3acc08a653cb4dd64411d86c35ac73011e Mon Sep 17 00:00:00 2001 From: Guozhi Wei Date: Thu, 8 Aug 2019 20:25:23 +0000 Subject: [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 --- llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/test/CodeGen/X86/code_placement_loop_rotation2.ll') 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 -- cgit v1.2.3