1 ; RUN: opt -instcombine %s -S | FileCheck %s
3 ;; This tests that the instructions in the entry blocks are sunk into each
6 define i32 @foo(i1 %C, i32 %A, i32 %B) {
8 %tmp.2 = sdiv i32 %A, %B ; <i32> [#uses=1]
9 %tmp.9 = add i32 %B, %A ; <i32> [#uses=1]
10 br i1 %C, label %then, label %endif
12 then: ; preds = %entry
15 endif: ; preds = %entry