diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-09-25 16:36:51 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2025-09-25 16:36:51 +0200 |
| commit | 186d91daf73188357d569b41906aa5f44a55dfba (patch) | |
| tree | 50431061df23ecbcd1b621b7f709f8fdd19a44a7 /tests/codegen-llvm | |
| parent | bb624dcb4c8ab987e10c0808d92d76f3b84dd117 (diff) | |
| download | rust-186d91daf73188357d569b41906aa5f44a55dfba.tar.gz rust-186d91daf73188357d569b41906aa5f44a55dfba.zip | |
Revert "Auto merge of #144086 - clubby789:alloc-zeroed, r=nikic"
This reverts commit 040a98af70f0a7da03f3d5356531b28a2a7a77e4, reversing changes made to e8a792daf500b5ff8097896ddb6cc037abe92487.
Diffstat (limited to 'tests/codegen-llvm')
| -rw-r--r-- | tests/codegen-llvm/vec-calloc.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/codegen-llvm/vec-calloc.rs b/tests/codegen-llvm/vec-calloc.rs index 15971bbfa00..d1c320ead01 100644 --- a/tests/codegen-llvm/vec-calloc.rs +++ b/tests/codegen-llvm/vec-calloc.rs @@ -1,6 +1,4 @@ -//@ revisions: normal llvm21 //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled -//@ [llvm21] min-llvm-version: 21 //@ only-x86_64 #![crate_type = "lib"] @@ -178,24 +176,6 @@ pub fn vec_option_i32(n: usize) -> Vec<Option<i32>> { vec![None; n] } -// LLVM21-LABEL: @vec_array -#[cfg(llvm21)] -#[no_mangle] -pub fn vec_array(n: usize) -> Vec<[u32; 1_000_000]> { - // LLVM21-NOT: call {{.*}}alloc::vec::from_elem - // LLVM21-NOT: call {{.*}}reserve - // LLVM21-NOT: call {{.*}}__rust_alloc( - - // LLVM21: call {{.*}}__rust_alloc_zeroed( - - // LLVM21-NOT: call {{.*}}alloc::vec::from_elem - // LLVM21-NOT: call {{.*}}reserve - // LLVM21-NOT: call {{.*}}__rust_alloc( - - // LLVM21: ret void - vec![[0; 1_000_000]; 3] -} - // Ensure that __rust_alloc_zeroed gets the right attributes for LLVM to optimize it away. // CHECK: declare noalias noundef ptr @{{.*}}__rust_alloc_zeroed(i64 noundef, i64 allocalign noundef) unnamed_addr [[RUST_ALLOC_ZEROED_ATTRS:#[0-9]+]] |
