Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/mir-opt/const_prop/scalar_literal_propagation.rs

14 lines
264 B
Rust
Raw Normal View History

mir-opt tests: rename unit-test -> test-mir-pass
2024-04-20 13:19:34 +02:00
//@ test-mir-pass: GVN
properly mark tests that require panic=abort
2023-06-08 09:18:34 +02:00
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
FileCheck scalar_literal_propagation.
2023-12-02 21:02:42 +00:00
Replace legacy ConstProp by GVN.
2023-09-20 21:43:33 +00:00
// EMIT_MIR scalar_literal_propagation.main.GVN.diff
Added regression test for literal propagation and for scalar pair propagation
2020-04-22 21:39:47 -04:00
fn main() {
FileCheck scalar_literal_propagation.
2023-12-02 21:02:42 +00:00
// CHECK-LABEL: fn main(
// CHECK: = consume(const 1_u32)
Added regression test for literal propagation and for scalar pair propagation
2020-04-22 21:39:47 -04:00
let x = 1;
consume(x);
}
#[inline(never)]
rustfmt `tests/mir-opt`. The only non-obvious changes: - `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]` attribute to avoid reformating a table of data. - Two `.mir` files have slight changes involving line numbers. - In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to outside a function, which is the usual spot, because `tidy` complains if such a comment is indented. The commit also tweaks the comments in `rustfmt.toml`.
2024-06-03 10:18:33 +10:00
fn consume(_: u32) {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 877ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API