Increase array size in array-map.rs
Make sure that the loop is not fully unrolled (which allows eliminating the allocas) in LLVM 16 either.
This commit is contained in:
parent
237f703a6d
commit
58ac25b453
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ pub fn short_integer_zip_map(x: [u32; 8], y: [u32; 8]) -> [u32; 8] {
|
||||||
//
|
//
|
||||||
// CHECK-LABEL: @long_integer_map
|
// CHECK-LABEL: @long_integer_map
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn long_integer_map(x: [u32; 64]) -> [u32; 64] {
|
pub fn long_integer_map(x: [u32; 512]) -> [u32; 512] {
|
||||||
// CHECK: start:
|
// CHECK: start:
|
||||||
// CHECK-NEXT: alloca [64 x i32]
|
// CHECK-NEXT: alloca [512 x i32]
|
||||||
// CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 64]>"
|
// CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 512]>"
|
||||||
// CHECK-NOT: alloca
|
// CHECK-NOT: alloca
|
||||||
// CHECK: mul <{{[0-9]+}} x i32>
|
// CHECK: mul <{{[0-9]+}} x i32>
|
||||||
// CHECK: add <{{[0-9]+}} x i32>
|
// CHECK: add <{{[0-9]+}} x i32>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue