Enable more mir-opt tests in debug builds
This commit is contained in:
parent
85e449a323
commit
07994c9310
@ -1,6 +1,5 @@
|
|||||||
//@ unit-test: DataflowConstProp
|
//@ unit-test: DataflowConstProp
|
||||||
//@ compile-flags: -Zmir-enable-passes=+GVN,+Inline
|
//@ compile-flags: -Zmir-enable-passes=+GVN,+Inline
|
||||||
//@ ignore-debug assertions change the output MIR
|
|
||||||
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// skip-filecheck
|
// skip-filecheck
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
//@ compile-flags: --crate-type lib -Cdebug-assertions=no
|
|
||||||
|
|
||||||
#![feature(flt2dec)]
|
#![feature(flt2dec)]
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(unchecked_shifts)]
|
#![feature(unchecked_shifts)]
|
||||||
|
|
||||||
//@ ignore-debug: the debug assertions prevent the inlining we are testing for
|
|
||||||
//@ compile-flags: -Zmir-opt-level=2 -Zinline-mir
|
//@ compile-flags: -Zmir-opt-level=2 -Zinline-mir
|
||||||
|
|
||||||
// EMIT_MIR unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.diff
|
// EMIT_MIR unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.diff
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
//@ ignore-debug: the debug assertions prevent the inlining we are testing for
|
//@ compile-flags: -Zmir-opt-level=2 -Zinline-mir
|
||||||
//@ compile-flags: -Zmir-opt-level=2 -Zinline-mir -Cdebug-assertions=no
|
|
||||||
|
|
||||||
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.Inline.diff
|
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.Inline.diff
|
||||||
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.PreCodegen.after.mir
|
// EMIT_MIR unwrap_unchecked.unwrap_unchecked.PreCodegen.after.mir
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// skip-filecheck
|
// skip-filecheck
|
||||||
//@ compile-flags: -O -Zmir-opt-level=2 -Cdebuginfo=0
|
//@ compile-flags: -O -Zmir-opt-level=2 -Cdebuginfo=0
|
||||||
//@ ignore-debug: standard library debug assertions add a panic that breaks this optimization
|
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// skip-filecheck
|
// skip-filecheck
|
||||||
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Zinline-mir
|
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2 -Zinline-mir
|
||||||
//@ ignore-debug the standard library debug assertions leak into this test
|
//@ ignore-debug: precondition checks on ptr::read/write are under cfg(debug_assertions)
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// skip-filecheck
|
// skip-filecheck
|
||||||
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
|
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
|
||||||
//@ ignore-debug the standard library debug assertions leak into this test
|
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// skip-filecheck
|
// skip-filecheck
|
||||||
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
|
//@ compile-flags: -O -C debuginfo=0 -Zmir-opt-level=2
|
||||||
//@ ignore-debug the standard library debug assertions leak into this test
|
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
Loading…
Reference in New Issue
Block a user