1 ; RUN: opt < %s -instcombine -value-tracking-dom-conditions -S | FileCheck %s 2 3 define i32 @dom_cond(i32 %a, i32 %b) { 4 ; CHECK-LABEL: @dom_cond( 5 entry: 6 %v = add i32 %a, %b 7 %cond = icmp ule i32 %v, 7 8 br i1 %cond, label %then, label %exit 9 10 then: 11 %v2 = add i32 %v, 8 12 ; CHECK: or i32 %v, 8 13 br label %exit 14 15 exit: 16 %v3 = phi i32 [ %v, %entry ], [ %v2, %then ] 17 ret i32 %v3 18 } 19