diff options
| author | Guozhi Wei <carrot@google.com> | 2019-08-22 16:21:32 +0000 |
|---|---|---|
| committer | Guozhi Wei <carrot@google.com> | 2019-08-22 16:21:32 +0000 |
| commit | 51f48295cbe8fa3a44db263b528dd9f7bae7bf9a (patch) | |
| tree | 28614c4e7fca7431bf287b07453443bacab0f39b /llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll | |
| parent | 95cf66de7cc186253c59a009bb795da1cbe9d6f4 (diff) | |
| download | bcm5719-llvm-51f48295cbe8fa3a44db263b528dd9f7bae7bf9a.tar.gz bcm5719-llvm-51f48295cbe8fa3a44db263b528dd9f7bae7bf9a.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: 369664
Diffstat (limited to 'llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll b/llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll index 3bafd8c3a35..088710c6737 100644 --- a/llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll +++ b/llvm/test/CodeGen/AArch64/cmpxchg-idioms.ll @@ -111,7 +111,7 @@ define i1 @test_conditional2(i32 %a, i32 %b, i32* %c) { ; CHECK: mov w22, #2 ; CHECK-NOT: mov w22, #4 ; CHECK-NOT: cmn w22, #4 -; CHECK: [[LOOP2:LBB[0-9]+_[0-9]+]]: ; %for.cond +; CHECK: b [[LOOP2:LBB[0-9]+_[0-9]+]] ; CHECK-NOT: b.ne [[LOOP2]] ; CHECK-NOT: b {{LBB[0-9]+_[0-9]+}} ; CHECK: bl _foo |

