1*9880d681SAndroid Build Coastguard Worker; This is a basic sanity check for constant propagation. The add instruction 2*9880d681SAndroid Build Coastguard Worker; should be eliminated. 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -sccp -S | not grep add 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine i128 @test(i1 %B) { 7*9880d681SAndroid Build Coastguard Worker br i1 %B, label %BB1, label %BB2 8*9880d681SAndroid Build Coastguard WorkerBB1: 9*9880d681SAndroid Build Coastguard Worker %Val = add i128 0, 1 10*9880d681SAndroid Build Coastguard Worker br label %BB3 11*9880d681SAndroid Build Coastguard WorkerBB2: 12*9880d681SAndroid Build Coastguard Worker br label %BB3 13*9880d681SAndroid Build Coastguard WorkerBB3: 14*9880d681SAndroid Build Coastguard Worker %Ret = phi i128 [%Val, %BB1], [2, %BB2] 15*9880d681SAndroid Build Coastguard Worker ret i128 %Ret 16*9880d681SAndroid Build Coastguard Worker} 17