diff options
author | Xin Tong <trent.xin.tong@gmail.com> | 2017-01-02 20:27:23 +0000 |
---|---|---|
committer | Xin Tong <trent.xin.tong@gmail.com> | 2017-01-02 20:27:23 +0000 |
commit | 059fad8157292516a4d114e545c96a19b23b9603 (patch) | |
tree | e05d8993f907b00bcec9c83d4885c1fc937e886f /test | |
parent | 12ec8e1ce1f6275cfc4d0ad8357340f361396995 (diff) |
Make sure total loop body weight is preserved in loop peeling
Summary:
Regardless how the loop body weight is distributed, we should preserve
total loop body weight. i.e. we should have same weight reaching the body of the loop
or its duplicates in peeled and unpeeled case.
Reviewers: mkuper, davidxl, anemet
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D28179
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/LoopUnroll/peel-loop-pgo.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/LoopUnroll/peel-loop-pgo.ll b/test/Transforms/LoopUnroll/peel-loop-pgo.ll index 2987b03c04d..18309b0691f 100644 --- a/test/Transforms/LoopUnroll/peel-loop-pgo.ll +++ b/test/Transforms/LoopUnroll/peel-loop-pgo.ll @@ -43,5 +43,5 @@ for.end: ; preds = %for.cond.for.end_cr ;CHECK: !1 = !{!"branch_weights", i32 900, i32 101} ;CHECK: !2 = !{!"branch_weights", i32 540, i32 360} ;CHECK: !3 = !{!"branch_weights", i32 162, i32 378} -;CHECK: !4 = !{!"branch_weights", i32 560, i32 162} +;CHECK: !4 = !{!"branch_weights", i32 1399, i32 162} |