Fix a test that was "broken" by new optimizations. The transformation we
authorChris Lattner <sabre@nondot.org>
Wed, 26 May 2004 23:51:29 +0000 (23:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 26 May 2004 23:51:29 +0000 (23:51 +0000)
are doing is certainly correct, its just that we didn't have the capability
to do it when the testcase was written (no select instr)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13799 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/2002-05-05-EmptyBlockMerge.ll

index 3539bccc4ab8f0da1e7ca59b02248172003ef720..054135355c552fc0072ffc11fb91f7acd30208e6 100644 (file)
@@ -2,6 +2,9 @@
 ;
 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br label'
 ;
+declare void %foo()
+implementation
+
 void "cprop_test12"(int* %data) {
 bb0:
         %reg108 = load int* %data
@@ -9,6 +12,7 @@ bb0:
         br bool %cond218, label %bb3, label %bb2
 
 bb2:
+       call void %foo()
         br label %bb3
 
 bb3: