Dead code elimination.
This commit is contained in:
parent
1dbf3e8477
commit
7a066ba547
1 changed files with 0 additions and 27 deletions
|
@ -8255,39 +8255,12 @@ fn vec_fill(&@block_ctxt bcx, ValueRef v) -> ValueRef {
|
||||||
C_int(abi::vec_elt_fill)]));
|
C_int(abi::vec_elt_fill)]));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn put_vec_fill(&@block_ctxt bcx, ValueRef v, ValueRef fill) -> ValueRef {
|
|
||||||
ret bcx.build.Store(fill,
|
|
||||||
bcx.build.GEP(v,
|
|
||||||
[C_int(0),
|
|
||||||
C_int(abi::vec_elt_fill)]));
|
|
||||||
}
|
|
||||||
|
|
||||||
fn vec_fill_adjusted(&@block_ctxt bcx, ValueRef v,
|
|
||||||
ValueRef skipnull) -> ValueRef {
|
|
||||||
auto f = bcx.build.Load(bcx.build.GEP(v,
|
|
||||||
[C_int(0),
|
|
||||||
C_int(abi::vec_elt_fill)]));
|
|
||||||
ret bcx.build.Select(skipnull, bcx.build.Sub(f, C_int(1)), f);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn vec_p0(&@block_ctxt bcx, ValueRef v) -> ValueRef {
|
fn vec_p0(&@block_ctxt bcx, ValueRef v) -> ValueRef {
|
||||||
auto p = bcx.build.GEP(v, [C_int(0),
|
auto p = bcx.build.GEP(v, [C_int(0),
|
||||||
C_int(abi::vec_elt_data)]);
|
C_int(abi::vec_elt_data)]);
|
||||||
ret bcx.build.PointerCast(p, T_ptr(T_i8()));
|
ret bcx.build.PointerCast(p, T_ptr(T_i8()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn vec_p1(&@block_ctxt bcx, ValueRef v) -> ValueRef {
|
|
||||||
auto len = vec_fill(bcx, v);
|
|
||||||
ret bcx.build.GEP(vec_p0(bcx, v), [len]);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn vec_p1_adjusted(&@block_ctxt bcx, ValueRef v,
|
|
||||||
ValueRef skipnull) -> ValueRef {
|
|
||||||
auto len = vec_fill_adjusted(bcx, v, skipnull);
|
|
||||||
ret bcx.build.GEP(vec_p0(bcx, v), [len]);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn make_glues(ModuleRef llmod, &type_names tn) -> @glue_fns {
|
fn make_glues(ModuleRef llmod, &type_names tn) -> @glue_fns {
|
||||||
ret @rec(yield_glue = decl_glue(llmod, tn, abi::yield_glue_name()),
|
ret @rec(yield_glue = decl_glue(llmod, tn, abi::yield_glue_name()),
|
||||||
no_op_type_glue = decl_no_op_type_glue(llmod, tn),
|
no_op_type_glue = decl_no_op_type_glue(llmod, tn),
|
||||||
|
|
Loading…
Reference in a new issue