You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MIR shown by above link is optimized. The compiler removes some statements in optimization like `StorageLive`. This happens because compiler notices the value is never acessed in the code. We can use `rustc [filename].rs -Z mir-opt-level=0 --emit mir` to view unoptimized MIR. This requires nightly toolchain.
65
+
MIR shown by above link is optimized.
66
+
Some statements like `StorageLive` are removed in optimization.
67
+
This happens because compiler notices the value is never acessed in the code.
68
+
We can use `rustc [filename].rs -Z mir-opt-level=0 --emit mir` to view unoptimized MIR.
0 commit comments