SimplifyCFG: Track the number of used icmps when turning a icmp chain into a switch...
[oota-llvm.git] / test / Transforms / SimplifyCFG / switch-to-icmp.ll
index 2499cdbcd69f1b0dc6acc4c3459ab4edc392a33e..414f8475bc2302353ff3cd7332250050e4837845 100644 (file)
@@ -16,8 +16,8 @@ lor.end:
  ret i1 %0
 
 ; CHECK: @test1
-; CHECK: %off = add i32 %x, -1
-; CHECK: %switch = icmp ult i32 %off, 3
+; CHECK: %x.off = add i32 %x, -1
+; CHECK: %switch = icmp ult i32 %x.off, 3
 }
 
 define zeroext i1 @test2(i32 %x) nounwind readnone ssp noredzone {
@@ -35,6 +35,5 @@ lor.end:
  ret i1 %0
 
 ; CHECK: @test2
-; CHECK: %off = add i32 %x, 0
-; CHECK: %switch = icmp ult i32 %off, 2
+; CHECK: %switch = icmp ult i32 %x, 2
 }