[IRCE] Fix test case; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 13 Aug 2016 23:36:40 +0000 (23:36 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 13 Aug 2016 23:36:40 +0000 (23:36 +0000)
The (negative) test case is supposed to check that IRCE does not muck
with range checks it cannot handle, not that it does the right thing in
the absence of profiling information.

llvm-svn: 278612

llvm/test/Transforms/IRCE/unhandled.ll

index 668b318..4c5c7c0 100644 (file)
@@ -20,7 +20,7 @@ define void @general_affine_expressions(i32 *%arr, i32 *%a_len_ptr, i32 %n,
   %abc.high = icmp slt i32 %array.idx, %len
   %abc.low = icmp sge i32 %array.idx, 0
   %abc = and i1 %abc.low, %abc.high
-  br i1 %abc, label %in.bounds, label %out.of.bounds
+  br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1
 
  in.bounds:
   %addr = getelementptr i32, i32* %arr, i32 %array.idx