[llvm] r317848 - [SimplifyCFG] Fix a test case.

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 15:17:53 PST 2017


Author: eraman
Date: Thu Nov  9 15:17:52 2017
New Revision: 317848

URL: http://llvm.org/viewvc/llvm-project?rev=317848&view=rev
Log:
[SimplifyCFG] Fix a test case.

This was first committed in r317845, but had the order of branch weights
wrong and didn't properly check the output.

Modified:
    llvm/trunk/test/Transforms/SimplifyCFG/suppress-zero-branch-weights.ll

Modified: llvm/trunk/test/Transforms/SimplifyCFG/suppress-zero-branch-weights.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/suppress-zero-branch-weights.ll?rev=317848&r1=317847&r2=317848&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/suppress-zero-branch-weights.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/suppress-zero-branch-weights.ll Thu Nov  9 15:17:52 2017
@@ -14,6 +14,7 @@ define i1 @repeated_signbits(i8 %conditi
 ; CHECK-DAG:     i32  0, label %a
 ; CHECK-DAG:     i32  127, label %a
 ; CHECK-NEXT:    ]
+; CHECK-NOT:    , !prof
 ;
 entry:
   %sext = sext i8 %condition to i32
@@ -35,5 +36,5 @@ default:
   ret i1 0
 }
 
-!1 = !{!"branch_weights", i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0}
+!1 = !{!"branch_weights", i32 0, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0}
 




More information about the llvm-commits mailing list