Displaying 1 result from an estimated 1 matches for "switch_end_2".
2013 Jul 13
1
[LLVMdev] Inlined call properly optimized, but not function itself
...;t actually reflect this optimization: it
still has a branch. Granted, it's a lot smaller than the input, but I'd
expect it to end up as just 'ret i64 3'.
define i64 @eval_expr() uwtable {
entry:
%0 = extractvalue %0 { i1 true, i64 3 }, 0
br i1 %0, label %switch_then_24, label %switch_end_2
switch_end_2: ; preds = %entry,
%switch_then_24
%1 = phi i64 [ %2, %switch_then_24 ], [ 4, %entry ]
ret i64 %1
switch_then_24: ; preds = %entry
%2 = extractvalue %0 { i1 true, i64 3 }, 1
br label %switch_end_2
}
In oth...