We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ea85f commit 5901a2dCopy full SHA for 5901a2d
tests/codegen/issues/issue-123712-str-to-lower-autovectorization.rs
@@ -10,10 +10,10 @@
10
// CHECK-NEXT: [[C:%[0-9]]] = bitcast <16 x i1> [[B]] to i16
11
#[no_mangle]
12
pub fn lower_while_ascii(mut input: &[u8], mut output: &mut [u8]) -> usize {
13
- // process the input in chunks to enable auto-vectorization
14
- const USIZE_SIZE: usize = core::mem::size_of::<usize>();
15
- const MAGIC_UNROLL: usize = 2;
16
- const N: usize = USIZE_SIZE * MAGIC_UNROLL;
+ // Process the input in chunks to enable auto-vectorization.
+ // The real implementation makes this dependant on the size of usize,
+ // but that would require changing the CHECK assertions based on the platform.
+ const N: usize = 16;
17
18
output = &mut output[..input.len()];
19
0 commit comments