Stream: t-compiler/wg-mir-opt

Topic: const propagation in generic functions


oli (May 22 2019 at 14:03, on Zulip):

@Wesley Wiser I remember something about generic functions not getting much out of the const propagator. We have loads of early aborts in the presence of generics: https://github.com/rust-lang/rust/blob/37ff5d388f8c004ca248adb635f1cc84d347eda0/src/librustc_mir/transform/const_prop.rs#L397

oli (May 22 2019 at 14:04, on Zulip):

After https://github.com/rust-lang/rust/pull/61041 we should be in a much better position to start looking into optimizing generic functions again

Wesley Wiser (May 22 2019 at 14:04, on Zulip):

Oh very cool!

Wesley Wiser (May 22 2019 at 14:05, on Zulip):

I'm working on trying to get the Len operand to const prop right now

Last update: Nov 17 2019 at 06:55UTC