about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-01 11:53:24 +0000
committerbors <bors@rust-lang.org>2021-03-01 11:53:24 +0000
commit09db05762b283bed62d4f92729cfee4646519833 (patch)
tree0c3f7b485c837db35f7af1f5159df4a25f617d62 /src/test/codegen
parentd2731d8e9338d8fe844e19d3fbb39617753e65f4 (diff)
parent57de468ff98387a998afe089b77466ee50733c27 (diff)
downloadrust-09db05762b283bed62d4f92729cfee4646519833.tar.gz
rust-09db05762b283bed62d4f92729cfee4646519833.zip
Auto merge of #78360 - tmiasko:storage-markers, r=wesleywiser,oli-obk
Remove storage markers if they won't be used during code generation

The storage markers constitute a substantial portion of all MIR
statements. At the same time, for builds without any optimizations,
the storage markers have no further use during and after MIR
optimization phase.

If storage markers are not necessary for code generation, remove them.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/try_identity.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/try_identity.rs b/src/test/codegen/try_identity.rs
index d30b706eafc..d51bd575719 100644
--- a/src/test/codegen/try_identity.rs
+++ b/src/test/codegen/try_identity.rs
@@ -1,4 +1,4 @@
-// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=2 -Zunsound-mir-opts
+// compile-flags: -C no-prepopulate-passes -O -Z mir-opt-level=2 -Zunsound-mir-opts
 
 // Ensure that `x?` has no overhead on `Result<T, E>` due to identity `match`es in lowering.
 // This requires inlining to trigger the MIR optimizations in `SimplifyArmIdentity`.