rust/compiler/rustc_mir/src
Dylan DPC 2fdcd245df
Rollup merge of #79117 - cjkenn:mir-fuel, r=oli-obk
add optimization fuel checks to some mir passes

Fixes #77402

Inserts a bunch of calls to `consider_optimizing`. Note that `consider_optimizing` is the method that actually decrements the fuel count, so the point at which it's called is when the optimization takes place, from a fuel perspective. This means that where we call it has some thought behind it:

1. We probably don't want to decrement the fuel count before other simple checks, otherwise we count an optimization as being performed even if nothing was mutated (ie. it returned early).
2. In cases like `InstCombine`, where we gather optimizations in a pass and then mutate values, we probably would rather skip the gathering pass for performance reasons rather than skip the mutations afterwards.
2020-11-19 16:26:35 +01:00
..
borrow_check Auto merge of #78801 - sexxi-goose:min_capture, r=nikomatsakis 2020-11-17 03:56:03 +00:00
const_eval review comments 2020-11-12 21:08:18 +05:30
dataflow compiler: fold by value 2020-11-16 22:34:57 +01:00
interpret Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
monomorphize Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
transform Rollup merge of #79117 - cjkenn:mir-fuel, r=oli-obk 2020-11-19 16:26:35 +01:00
util Introduce TypeVisitor::BreakTy 2020-11-14 20:25:27 +01:00
lib.rs
shim.rs compiler: fold by value 2020-11-16 22:34:57 +01:00