1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple thumbv7 -stop-after=if-converter < %s 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Make sure the save point and restore point are dropped from MFI at 4*9880d681SAndroid Build Coastguard Worker; this point. Notably, if it isn't is will be invalid and reference a 5*9880d681SAndroid Build Coastguard Worker; deleted block (%bb.-1.if.end) 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: savePoint: 8*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: restorePoint: 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" 11*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7" 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerdefine i32 @f(i32 %n) { 14*9880d681SAndroid Build Coastguard Workerentry: 15*9880d681SAndroid Build Coastguard Worker %cmp = icmp ult i32 %n, 4 16*9880d681SAndroid Build Coastguard Worker br i1 %cmp, label %return, label %if.end 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerif.end: 19*9880d681SAndroid Build Coastguard Worker tail call void @g(i32 %n) 20*9880d681SAndroid Build Coastguard Worker br label %return 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Workerreturn: 23*9880d681SAndroid Build Coastguard Worker %retval.0 = phi i32 [ 0, %if.end ], [ -1, %entry ] 24*9880d681SAndroid Build Coastguard Worker ret i32 %retval.0 25*9880d681SAndroid Build Coastguard Worker} 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workerdeclare void @g(i32) 28