1 ; RUN: opt < %s -constprop -die -S | FileCheck %s
3 ; This is a basic sanity check for constant propogation. The add instruction
4 ; should be eliminated.
5 define i32 @test1(i1 %B) {
6 br i1 %B, label %BB1, label %BB2
17 ; CHECK: %Ret = phi i32 [ 0, %BB1 ], [ 1, %BB2 ]
18 %Ret = phi i32 [ %Val, %BB1 ], [ 1, %BB2 ]