llvm.org GIT mirror llvm / 4c8927a
[test] Change comment wording (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363751 91177308-0d34-0410-b5e6-96231b3b80d8 Evandro Menezes 1 year, 5 months ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
6262 return: ret void
6363
6464 ; Check that we set branch weights on the pivot cmp instruction correctly.
65 ; Cases {0,10,20,30} go on the left with weight 13; cases {40,50} go on the
65 ; Cases {0,100,200,300} go on the left with weight 13; cases {400,500} go on the
6666 ; right with weight 20.
6767 ;
6868 ; CHECK-LABEL: Machine code for function left_leaning_weight_balanced_tree:
782782 define void @range_with_unreachable_fallthrough(i32 %i) {
783783 entry:
784784 switch i32 %i, label %default [
785 i32 1, label %bb1
786 i32 2, label %bb1
787 i32 3, label %bb1
788 i32 4, label %bb2
789 i32 5, label %bb2
790 i32 6, label %bb2
785 i32 1, label %bb1
786 i32 2, label %bb1
787 i32 3, label %bb1
788 i32 4, label %bb2
789 i32 5, label %bb2
790 i32 6, label %bb2
791791 ]
792792 bb1: tail call void @g(i32 0) br label %return
793793 bb2: tail call void @g(i32 1) br label %return
797797 ret void
798798
799799 ; CHECK-LABEL: range_with_unreachable_fallthrough:
800 ; Since the default is unreachable, either the 1--3 or the 4--6 cluster will be
801 ; reached. Only one comparison should be emitted.
800 ; Since the default is unreachable, either cluster will be reached.
801 ; Only one comparison should be emitted.
802802 ; CHECK: cmpl
803803 ; CHECK-NOT: cmpl
804804 ; CHECK: jmp g