From 63dcac8423750369ee251e2bad0945ad765eaf5c Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Wed, 9 Apr 2025 10:44:49 -0700 Subject: [PATCH] skip `tests/codegen/swap-small-types` when debug assertions are on In `swap_nonoverlapping_short` there's a new `debug_assert!`, and if that's enabled then the `alloca`s don't optimize out. --- tests/codegen/swap-small-types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/codegen/swap-small-types.rs b/tests/codegen/swap-small-types.rs index ffa573c9a43a..7aa613ae9c22 100644 --- a/tests/codegen/swap-small-types.rs +++ b/tests/codegen/swap-small-types.rs @@ -1,6 +1,7 @@ //@ compile-flags: -Copt-level=3 -Z merge-functions=disabled //@ only-x86_64 //@ min-llvm-version: 20 +//@ ignore-std-debug-assertions (`ptr::swap_nonoverlapping` has one which blocks some optimizations) #![crate_type = "lib"]