Stream: t-compiler/help

Topic: Dumping pre-optimized MIR?


osa1 (Dec 03 2019 at 13:25, on Zulip):

As far as I can see -Z flags for dumping MIR print post-optimization MIRs, is there a way to see MIR before optimizations?

Wesley Wiser (Dec 03 2019 at 13:31, on Zulip):

You want to use the -Z dump-mir flag.

Wesley Wiser (Dec 03 2019 at 13:32, on Zulip):

Which will dump the MIR before and after each pass

Wesley Wiser (Dec 03 2019 at 13:32, on Zulip):

https://rust-lang.github.io/rustc-guide/mir/debugging.html

osa1 (Dec 03 2019 at 13:35, on Zulip):

Oh, I tried that flag but couldn't understand the output. That page is very helpful, thanks.

Last update: Dec 12 2019 at 01:20UTC