Drop 'basic-blocks' feature (#1363)

* All: Drop 'basic-blocks' feature

This makes it so that 'basic-blocks' cannot be disabled and we can
start assuming it everywhere.

* Tests: Replace non-bb filetests with bb version

* Tests: Adapt solver-fixedconflict filetests to use basic blocks
This commit is contained in:
Ryan Hunt
2020-01-23 23:36:06 -06:00
committed by Sean Stangl
parent 710182ad26
commit c360007b19
29 changed files with 139 additions and 599 deletions

View File

@@ -18,13 +18,10 @@ hashbrown = { version = "0.6", optional = true }
smallvec = { version = "1.0.0" }
[features]
default = ["std", "basic-blocks"]
default = ["std"]
std = ["cranelift-codegen/std"]
core = ["hashbrown", "cranelift-codegen/core"]
# Temporary feature that enforces basic block semantics.
basic-blocks = ["cranelift-codegen/basic-blocks"]
[badges]
maintenance = { status = "experimental" }
travis-ci = { repository = "bytecodealliance/cranelift" }

View File

@@ -480,7 +480,6 @@ impl<'a> FunctionBuilder<'a> {
);
// In debug mode, check that all blocks are valid basic blocks.
#[cfg(feature = "basic-blocks")]
#[cfg(debug_assertions)]
{
// Iterate manually to provide more helpful error messages.