Skip to content

Commit 63dcac8

Browse files
committed
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.
1 parent b06a88f commit 63dcac8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tests/codegen/swap-small-types.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ compile-flags: -Copt-level=3 -Z merge-functions=disabled
22
//@ only-x86_64
33
//@ min-llvm-version: 20
4+
//@ ignore-std-debug-assertions (`ptr::swap_nonoverlapping` has one which blocks some optimizations)
45

56
#![crate_type = "lib"]
67

0 commit comments

Comments
 (0)