diff options
| author | bors <bors@rust-lang.org> | 2023-05-31 09:20:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-31 09:20:10 +0000 |
| commit | fb35803cb7990a12d83aab676fd546de00ca8b7f (patch) | |
| tree | 8b8d894852929620765acaed378351244dc30701 /tests/codegen/array-map.rs | |
| parent | 1ac91624d13624c164800fcd28cb234149ce0f5a (diff) | |
| parent | 5304e40b93268fa8656945310a9b0c147e969519 (diff) | |
| download | rust-fb35803cb7990a12d83aab676fd546de00ca8b7f.tar.gz rust-fb35803cb7990a12d83aab676fd546de00ca8b7f.zip | |
Auto merge of #2907 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'tests/codegen/array-map.rs')
| -rw-r--r-- | tests/codegen/array-map.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/codegen/array-map.rs b/tests/codegen/array-map.rs index 3706ddf99fd..24f3f43d078 100644 --- a/tests/codegen/array-map.rs +++ b/tests/codegen/array-map.rs @@ -4,7 +4,6 @@ // ignore-debug (the extra assertions get in the way) #![crate_type = "lib"] -#![feature(array_zip)] // CHECK-LABEL: @short_integer_map #[no_mangle] @@ -16,16 +15,6 @@ pub fn short_integer_map(x: [u32; 8]) -> [u32; 8] { x.map(|x| 2 * x + 1) } -// CHECK-LABEL: @short_integer_zip_map -#[no_mangle] -pub fn short_integer_zip_map(x: [u32; 8], y: [u32; 8]) -> [u32; 8] { - // CHECK: %[[A:.+]] = load <8 x i32> - // CHECK: %[[B:.+]] = load <8 x i32> - // CHECK: sub <8 x i32> %[[B]], %[[A]] - // CHECK: store <8 x i32> - x.zip(y).map(|(x, y)| x - y) -} - // This test is checking that LLVM can SRoA away a bunch of the overhead, // like fully moving the iterators to registers. Notably, previous implementations // of `map` ended up `alloca`ing the whole `array::IntoIterator`, meaning both a |
