New predicate simplifier!

Please do not enable, there is still some known miscompile problem.

llvm-svn: 33066
This commit is contained in:
Nick Lewycky 2007-01-11 02:32:38 +00:00
parent e485c421c1
commit 7fb0a6d2ab
2 changed files with 1218 additions and 1018 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,19 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -predsimplify -disable-output
void %ercMarkCurrMBConcealed(int %comp) {
entry:
%tmp5 = icmp slt int %comp, 0 ; <bool> [#uses=2]
%comp_addr.0 = select bool %tmp5, int 0, int %comp ; <int> [#uses=1]
switch int %comp_addr.0, label %return [
int 0, label %bb
]
bb: ; preds = %entry
br bool %tmp5, label %bb87.bb97_crit_edge.critedge, label %return
bb87.bb97_crit_edge.critedge: ; preds = %bb
ret void
return: ; preds = %bb, %entry
ret void
}