diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-02-09 01:57:23 -0800 | 
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-02-14 22:24:27 -0800 | 
| commit | aede8f5fbff92bd1b257685c2e654a9bdf3a021f (patch) | |
| tree | fe11f44544df135475309e418374540e7afeaa61 /tests/codegen/slice-iter-nonnull.rs | |
| parent | 54a0f387ea8c7bcb79b8e40c074a484d31b51990 (diff) | |
| download | rust-aede8f5fbff92bd1b257685c2e654a9bdf3a021f.tar.gz rust-aede8f5fbff92bd1b257685c2e654a9bdf3a021f.zip | |
Simplify `slice::Iter::next` enough that it inlines
Diffstat (limited to 'tests/codegen/slice-iter-nonnull.rs')
| -rw-r--r-- | tests/codegen/slice-iter-nonnull.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tests/codegen/slice-iter-nonnull.rs b/tests/codegen/slice-iter-nonnull.rs index 98a1b961a64..87907e7ad0a 100644 --- a/tests/codegen/slice-iter-nonnull.rs +++ b/tests/codegen/slice-iter-nonnull.rs @@ -14,11 +14,11 @@ // CHECK-LABEL: @slice_iter_next( #[no_mangle] pub fn slice_iter_next<'a>(it: &mut std::slice::Iter<'a, u32>) -> Option<&'a u32> { - // CHECK: %[[ENDP:.+]] = getelementptr inbounds{{( nuw)?}} i8, ptr %it, {{i32 4|i64 8}} - // CHECK: %[[END:.+]] = load ptr, ptr %[[ENDP]] + // CHECK: %[[START:.+]] = load ptr, ptr %it, // CHECK-SAME: !nonnull // CHECK-SAME: !noundef - // CHECK: %[[START:.+]] = load ptr, ptr %it, + // CHECK: %[[ENDP:.+]] = getelementptr inbounds{{( nuw)?}} i8, ptr %it, {{i32 4|i64 8}} + // CHECK: %[[END:.+]] = load ptr, ptr %[[ENDP]] // CHECK-SAME: !nonnull // CHECK-SAME: !noundef // CHECK: icmp eq ptr %[[START]], %[[END]] | 
