tests/codegen: use -Copt-level=3 instead of -O

This commit is contained in:
Jubilee Young 2025-02-08 19:45:40 -08:00
parent 4c17270332
commit 3c0c9b6770
233 changed files with 233 additions and 233 deletions

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ revisions:x86_64 i686 aarch64-apple aarch64-windows aarch64-linux arm riscv //@ revisions:x86_64 i686 aarch64-apple aarch64-windows aarch64-linux arm riscv

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#[no_mangle] #[no_mangle]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Z merge-functions=disabled //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled
//@ only-x86_64 //@ only-x86_64
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(array_repeat)] #![feature(array_repeat)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64 //@ only-x86_64
#![crate_type = "rlib"] #![crate_type = "rlib"]

View file

@ -1,5 +1,5 @@
// Code generation of atomic operations. // Code generation of atomic operations.
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
use std::sync::atomic::AtomicI32; use std::sync::atomic::AtomicI32;

View file

@ -4,7 +4,7 @@
// ensures that we do not have such a round-trip for AtomicPtr::swap, because LLVM supports pointer // ensures that we do not have such a round-trip for AtomicPtr::swap, because LLVM supports pointer
// arguments to `atomicrmw xchg`. // arguments to `atomicrmw xchg`.
//@ compile-flags: -O -Cno-prepopulate-passes //@ compile-flags: -Copt-level=3 -Cno-prepopulate-passes
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(strict_provenance_atomic_ptr)] #![feature(strict_provenance_atomic_ptr)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O --target=avr-unknown-gnu-atmega328 --crate-type=rlib -C panic=abort //@ compile-flags: -Copt-level=3 --target=avr-unknown-gnu-atmega328 --crate-type=rlib -C panic=abort
//@ needs-llvm-components: avr //@ needs-llvm-components: avr
// This test validates that function pointers can be stored in global variables // This test validates that function pointers can be stored in global variables

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ ignore-std-debug-assertions //@ ignore-std-debug-assertions
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
// Make sure no bounds checks are emitted when slicing or indexing // Make sure no bounds checks are emitted when slicing or indexing

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
use std::mem::MaybeUninit; use std::mem::MaybeUninit;

View file

@ -1,7 +1,7 @@
// Checks that range metadata gets emitted on calls to functions returning a // Checks that range metadata gets emitted on calls to functions returning a
// scalar value. // scalar value.
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
//@ max-llvm-major-version: 18 //@ max-llvm-major-version: 18
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Z merge-functions=disabled //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled
#![crate_type = "lib"] #![crate_type = "lib"]
// This tests that LLVM can optimize based on the niches in the source or // This tests that LLVM can optimize based on the niches in the source or

View file

@ -1,7 +1,7 @@
// ignore-tidy-linelength // ignore-tidy-linelength
//@ revisions:aarch64 loongarch64 powerpc64 sparc64 x86_64 //@ revisions:aarch64 loongarch64 powerpc64 sparc64 x86_64
//@ min-llvm-version: 19 //@ min-llvm-version: 19
//@ compile-flags: -O -Cno-prepopulate-passes -Zlint-llvm-ir -Cllvm-args=-lint-abort-on-error //@ compile-flags: -Copt-level=3 -Cno-prepopulate-passes -Zlint-llvm-ir -Cllvm-args=-lint-abort-on-error
//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu //@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//@[aarch64] needs-llvm-components: arm //@[aarch64] needs-llvm-components: arm

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
// On x86 the closure is inlined in foo() producing something like // On x86 the closure is inlined in foo() producing something like
// define i32 @foo() [...] { // define i32 @foo() [...] {

View file

@ -1,6 +1,6 @@
// Checks that these functions are branchless. // Checks that these functions are branchless.
// //
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Z merge-functions=disabled //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(unchecked_shifts)] #![feature(unchecked_shifts)]

View file

@ -1,7 +1,7 @@
//@ revisions: DEBUGINFO NODEBUGINFO //@ revisions: DEBUGINFO NODEBUGINFO
//@ compile-flags: -Zunsound-mir-opts //@ compile-flags: -Zunsound-mir-opts
// FIXME: see <https://github.com/rust-lang/rust/issues/132353> // FIXME: see <https://github.com/rust-lang/rust/issues/132353>
//@ compile-flags: -O -Cno-prepopulate-passes //@ compile-flags: -Copt-level=3 -Cno-prepopulate-passes
//@ [DEBUGINFO] compile-flags: -Cdebuginfo=full //@ [DEBUGINFO] compile-flags: -Cdebuginfo=full
// From https://github.com/rust-lang/rust/issues/128081. // From https://github.com/rust-lang/rust/issues/128081.

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ aux-build:always.rs //@ aux-build:always.rs
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Zcross-crate-inline-threshold=always //@ compile-flags: -Copt-level=3 -Zcross-crate-inline-threshold=always
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Zcross-crate-inline-threshold=never //@ compile-flags: -Copt-level=3 -Zcross-crate-inline-threshold=never
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Zcross-crate-inline-threshold=yes //@ compile-flags: -Copt-level=3 -Zcross-crate-inline-threshold=yes
//@ aux-build:leaf.rs //@ aux-build:leaf.rs
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ aux-build:never.rs //@ aux-build:never.rs
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,7 +1,7 @@
// Verify that `i32::cmp` FnDef type is declared with a size of 0 and an // Verify that `i32::cmp` FnDef type is declared with a size of 0 and an
// alignment of 8 bits (1 byte) in LLVM debuginfo. // alignment of 8 bits (1 byte) in LLVM debuginfo.
//@ compile-flags: -O -g -Cno-prepopulate-passes //@ compile-flags: -Copt-level=3 -g -Cno-prepopulate-passes
//@ ignore-msvc the types are mangled differently //@ ignore-msvc the types are mangled differently
use std::cmp::Ordering; use std::cmp::Ordering;

View file

@ -1,4 +1,4 @@
//@ compile-flags: -g -O //@ compile-flags: -g -Copt-level=3
// Check that simple constant values are preserved in debuginfo across both MIR opts and LLVM opts // Check that simple constant values are preserved in debuginfo across both MIR opts and LLVM opts

View file

@ -1,4 +1,4 @@
//@ compile-flags: -g -O -C panic=abort //@ compile-flags: -g -Copt-level=3 -C panic=abort
// Check that each inline call site for the same function uses the same "sub-program" so that LLVM // Check that each inline call site for the same function uses the same "sub-program" so that LLVM
// can correctly merge the debug info if it merges the inlined code (e.g., for merging of tail // can correctly merge the debug info if it merges the inlined code (e.g., for merging of tail

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![allow(incomplete_features)] #![allow(incomplete_features)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
// Tests that the compiler can apply `noalias` and other &mut attributes to `drop_in_place`. // Tests that the compiler can apply `noalias` and other &mut attributes to `drop_in_place`.
// Note that non-Unpin types should not get `noalias`, matching &mut behavior. // Note that non-Unpin types should not get `noalias`, matching &mut behavior.

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Z merge-functions=disabled //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Z merge-functions=disabled //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O --target wasm32-unknown-emscripten //@ compile-flags: -Copt-level=3 --target wasm32-unknown-emscripten
//@ needs-llvm-components: webassembly //@ needs-llvm-components: webassembly
// Emscripten has its own unique implementation of catch_unwind (in `codegen_emcc_try`), // Emscripten has its own unique implementation of catch_unwind (in `codegen_emcc_try`),

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O --target wasm32-unknown-emscripten -Z emscripten-wasm-eh //@ compile-flags: -Copt-level=3 --target wasm32-unknown-emscripten -Z emscripten-wasm-eh
//@ needs-llvm-components: webassembly //@ needs-llvm-components: webassembly
// Emscripten catch_unwind using wasm exceptions // Emscripten catch_unwind using wasm exceptions

View file

@ -1,6 +1,6 @@
// This test checks an optimization that is not guaranteed to work. This test case should not block // This test checks an optimization that is not guaranteed to work. This test case should not block
// a future LLVM update. // a future LLVM update.
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,6 +1,6 @@
// This test checks an optimization that is not guaranteed to work. This test case should not block // This test checks an optimization that is not guaranteed to work. This test case should not block
// a future LLVM update. // a future LLVM update.
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,6 +1,6 @@
// Codegen test for #126242 // Codegen test for #126242
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(error_generic_member_access)] #![feature(error_generic_member_access)]
use std::error::Request; use std::error::Request;

View file

@ -1,6 +1,6 @@
//@ revisions: lib staticlib //@ revisions: lib staticlib
//@ ignore-emscripten default visibility is hidden //@ ignore-emscripten default visibility is hidden
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ [lib] compile-flags: --crate-type lib //@ [lib] compile-flags: --crate-type lib
//@ [staticlib] compile-flags: --crate-type staticlib //@ [staticlib] compile-flags: --crate-type staticlib
// `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their // `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their

View file

@ -1,7 +1,7 @@
//! Verify that Rust implements the expected calling convention for `f128` //! Verify that Rust implements the expected calling convention for `f128`
//@ add-core-stubs //@ add-core-stubs
//@ compile-flags: -O --target wasm32-wasip1 //@ compile-flags: -Copt-level=3 --target wasm32-wasip1
//@ needs-llvm-components: webassembly //@ needs-llvm-components: webassembly
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -2,7 +2,7 @@
// as "inreg" like the C/C++ compilers for the platforms. // as "inreg" like the C/C++ compilers for the platforms.
// x86 only. // x86 only.
//@ compile-flags: --target i686-unknown-linux-gnu -O -C no-prepopulate-passes //@ compile-flags: --target i686-unknown-linux-gnu -Cno-prepopulate-passes -Copt-level=3
//@ needs-llvm-components: x86 //@ needs-llvm-components: x86
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -Coverflow-checks=no -O //@ compile-flags: -Coverflow-checks=no -Copt-level=3
//@ revisions: YES NO //@ revisions: YES NO
//@ [YES]compile-flags: -Zfewer-names=yes //@ [YES]compile-flags: -Zfewer-names=yes
//@ [NO] compile-flags: -Zfewer-names=no //@ [NO] compile-flags: -Zfewer-names=no

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(rustc_attrs)] #![feature(rustc_attrs)]
#![feature(dyn_star)] #![feature(dyn_star)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(cold_path)] #![feature(cold_path)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(likely_unlikely)] #![feature(likely_unlikely)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(likely_unlikely)] #![feature(likely_unlikely)]

View file

@ -1,7 +1,7 @@
//! Verify that Rust implements the expected calling convention for `i128`/`u128`. //! Verify that Rust implements the expected calling convention for `i128`/`u128`.
//@ add-core-stubs //@ add-core-stubs
//@ compile-flags: -O --target wasm32-wasip1 //@ compile-flags: -Copt-level=3 --target wasm32-wasip1
//@ needs-llvm-components: webassembly //@ needs-llvm-components: webassembly
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,5 +1,5 @@
//@ only-x86_64 //@ only-x86_64
//@ compile-flags: -O -C no-prepopulate-passes --crate-type=lib //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes --crate-type=lib
// On LLVM 17 and earlier LLVM's own data layout specifies that i128 has 8 byte alignment, // On LLVM 17 and earlier LLVM's own data layout specifies that i128 has 8 byte alignment,
// while rustc wants it to have 16 byte alignment. This test checks that we handle this // while rustc wants it to have 16 byte alignment. This test checks that we handle this

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C overflow-checks=on //@ compile-flags: -Copt-level=3 -C overflow-checks=on
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes -Z mir-enable-passes=-InstSimplify //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes -Z mir-enable-passes=-InstSimplify
//@ only-64bit (so I don't need to worry about usize) //@ only-64bit (so I don't need to worry about usize)
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,5 +1,5 @@
//@ revisions: INT32 INT16 //@ revisions: INT32 INT16
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ [INT32] ignore-16bit //@ [INT32] ignore-16bit
//@ [INT16] only-16bit //@ [INT16] only-16bit

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#[no_mangle] #[no_mangle]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@revisions: with_nontemporal without_nontemporal //@revisions: with_nontemporal without_nontemporal
//@[with_nontemporal] compile-flags: --target aarch64-unknown-linux-gnu //@[with_nontemporal] compile-flags: --target aarch64-unknown-linux-gnu
//@[with_nontemporal] needs-llvm-components: aarch64 //@[with_nontemporal] needs-llvm-components: aarch64

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes -Z inline-mir //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes -Z inline-mir
//@ only-64bit (so I don't need to worry about usize) //@ only-64bit (so I don't need to worry about usize)
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Zmerge-functions=disabled //@ compile-flags: -Copt-level=3 -Zmerge-functions=disabled
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(select_unpredictable)] #![feature(select_unpredictable)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
//@ only-x86_64 (it's using arch-specific types) //@ only-x86_64 (it's using arch-specific types)
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C no-prepopulate-passes //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes
//@ only-64bit (so I don't need to worry about usize) //@ only-64bit (so I don't need to worry about usize)
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: --crate-type=lib -Zmerge-functions=disabled -O //@ compile-flags: --crate-type=lib -Zmerge-functions=disabled -Copt-level=3
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(f16, f128)] #![feature(f16, f128)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ revisions: host x86-64-v3 //@ revisions: host x86-64-v3
// This particular CPU regressed in #131563 // This particular CPU regressed in #131563

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C overflow-checks //@ compile-flags: -Copt-level=3 -C overflow-checks
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -C debug-assertions=yes //@ compile-flags: -Copt-level=3 -C debug-assertions=yes
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
pub fn foo(t: &mut Vec<usize>) { pub fn foo(t: &mut Vec<usize>) {

View file

@ -1,4 +1,4 @@
//@ compile-flags: --crate-type=lib -O -Cdebuginfo=2 -Cno-prepopulate-passes -Zmir-enable-passes=-ScalarReplacementOfAggregates //@ compile-flags: --crate-type=lib -Copt-level=3 -Cdebuginfo=2 -Cno-prepopulate-passes -Zmir-enable-passes=-ScalarReplacementOfAggregates
// MIR SROA will decompose the closure // MIR SROA will decompose the closure
#![feature(stmt_expr_attributes)] #![feature(stmt_expr_attributes)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ min-llvm-version: 19 //@ min-llvm-version: 19
// Test for #107681. // Test for #107681.

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Zmerge-functions=disabled //@ compile-flags: -Copt-level=3 -Zmerge-functions=disabled
//! Test for <https://github.com/rust-lang/rust/issues/108395>. Check that //! Test for <https://github.com/rust-lang/rust/issues/108395>. Check that
//! matching on two bools with wildcards does not produce branches. //! matching on two bools with wildcards does not produce branches.
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(get_mut_unchecked, new_uninit)] #![feature(get_mut_unchecked, new_uninit)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
// CHECK-LABEL: @write_u8_variant_a // CHECK-LABEL: @write_u8_variant_a

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ only-x86_64-unknown-linux-gnu //@ only-x86_64-unknown-linux-gnu
// We want to check that this function does not mis-optimize to loop jumping. // We want to check that this function does not mis-optimize to loop jumping.

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O -Ccodegen-units=1 //@ compile-flags: -Copt-level=3 -Ccodegen-units=1
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
/// Make sure no bounds checks are emitted after a `get_unchecked`. /// Make sure no bounds checks are emitted after a `get_unchecked`.

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ min-llvm-version: 19 //@ min-llvm-version: 19
//@ only-x86_64 //@ only-x86_64

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
// CHECK-LABEL: @div2 // CHECK-LABEL: @div2

View file

@ -1,7 +1,7 @@
//! This test checks that compiler don't generate useless compares to zeros //! This test checks that compiler don't generate useless compares to zeros
//! for `NonZero` integer types. //! for `NonZero` integer types.
//! //!
//@ compile-flags: -O --edition=2021 -Zmerge-functions=disabled //@ compile-flags: -Copt-level=3 --edition=2021 -Zmerge-functions=disabled
//@ only-64bit (because the LLVM type of i64 for usize shows up) //@ only-64bit (because the LLVM type of i64 for usize shows up)
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,7 +1,7 @@
//! This test checks that match branches which all access a field //! This test checks that match branches which all access a field
//! at the same offset are merged together. //! at the same offset are merged together.
//! //!
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
#![crate_type = "lib"] #![crate_type = "lib"]
#[repr(C)] #[repr(C)]

View file

@ -1,4 +1,4 @@
//@ compile-flags: -O //@ compile-flags: -Copt-level=3
//@ min-llvm-version: 19 //@ min-llvm-version: 19
#![crate_type = "lib"] #![crate_type = "lib"]

Some files were not shown because too many files have changed in this diff Show more