rust/compiler/rustc_codegen_ssa/src/mir
bors e5484cec0e Auto merge of #88242 - bonega:allocation_range, r=oli-obk
Use custom wrap-around type instead of RangeInclusive

Two reasons:

1. More memory is allocated than necessary for `valid_range` in `Scalar`. The range is not used as an iterator and `exhausted` is never used.
2. `contains`, `count` etc. methods in `RangeInclusive` are doing very unhelpful(and dangerous!) things when used as a wrap-around range. - In general this PR wants to limit potentially confusing methods, that have a low probability of working.

Doing a local perf run, every metric shows improvement except for instructions.
Max-rss seem to have a very consistent improvement.

Sorry - newbie here, probably doing something wrong.
2021-08-25 02:17:41 +00:00
..
analyze.rs Do not emit alloca for ZST locals with multiple assignments 2021-06-10 14:53:06 +02:00
block.rs Prepare call/invoke for opaque pointers 2021-08-05 10:58:55 -07:00
constant.rs update const_eval_resolve 2021-03-20 17:22:24 +01:00
coverageinfo.rs coverageinfo query needs to use the same MIR as codegen 2021-05-12 20:27:07 -07:00
debuginfo.rs Fix project_deref() implementation 2021-07-09 22:14:44 +02:00
intrinsic.rs Prepare inbounds_gep for opaque pointers 2021-08-04 15:51:30 +02:00
mod.rs rustc_codegen_ssa: append blocks to functions w/o creating a builder. 2021-05-17 00:04:09 +03:00
operand.rs Prepare struct_gep for opaque pointers 2021-08-04 15:51:30 +02:00
place.rs Prepare inbounds_gep for opaque pointers 2021-08-04 15:51:30 +02:00
rvalue.rs Auto merge of #88242 - bonega:allocation_range, r=oli-obk 2021-08-25 02:17:41 +00:00
statement.rs Make source-based code coverage compatible with MIR inlining 2021-03-15 23:26:03 +01:00