Extended Description
To reproduce: run "opt -simplifycfg" on the attached testcase. Code after simplifycfg:
define i32 @x(i32 %x) {
entry:
%call = call i32 (...)* @foo( ) ; [#uses=0]
%cond = icmp eq i32 %x, 9 ; [#uses=0]
%call9 = call i32 (...)* @bar( ) ; [#uses=0]
ret i32 0
}
The icmp is unused; SimplifyCFG should have eliminated it when it eliminated the branch that used it.