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:
@@ -25,14 +25,11 @@ wat = "1.0.7"
|
||||
target-lexicon = "0.10"
|
||||
|
||||
[features]
|
||||
default = ["std", "basic-blocks"]
|
||||
default = ["std"]
|
||||
std = ["cranelift-codegen/std", "cranelift-frontend/std"]
|
||||
core = ["hashbrown", "cranelift-codegen/core", "cranelift-frontend/core"]
|
||||
enable-serde = ["serde"]
|
||||
|
||||
# Temporary feature that enforces basic block semantics.
|
||||
basic-blocks = ["cranelift-codegen/basic-blocks", "cranelift-frontend/basic-blocks"]
|
||||
|
||||
[badges]
|
||||
maintenance = { status = "experimental" }
|
||||
travis-ci = { repository = "bytecodealliance/cranelift" }
|
||||
|
||||
@@ -205,13 +205,10 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
|
||||
(destination, ElseData::WithElse { else_block })
|
||||
};
|
||||
|
||||
#[cfg(feature = "basic-blocks")]
|
||||
{
|
||||
let next_ebb = builder.create_ebb();
|
||||
builder.ins().jump(next_ebb, &[]);
|
||||
builder.seal_block(next_ebb); // Only predecessor is the current block.
|
||||
builder.switch_to_block(next_ebb);
|
||||
}
|
||||
let next_ebb = builder.create_ebb();
|
||||
builder.ins().jump(next_ebb, &[]);
|
||||
builder.seal_block(next_ebb); // Only predecessor is the current block.
|
||||
builder.switch_to_block(next_ebb);
|
||||
|
||||
// Here we append an argument to an Ebb targeted by an argumentless jump instruction
|
||||
// But in fact there are two cases:
|
||||
@@ -1744,13 +1741,10 @@ fn translate_br_if(
|
||||
|
||||
builder.ins().brnz(val, br_destination, inputs);
|
||||
|
||||
#[cfg(feature = "basic-blocks")]
|
||||
{
|
||||
let next_ebb = builder.create_ebb();
|
||||
builder.ins().jump(next_ebb, &[]);
|
||||
builder.seal_block(next_ebb); // The only predecessor is the current block.
|
||||
builder.switch_to_block(next_ebb);
|
||||
}
|
||||
let next_ebb = builder.create_ebb();
|
||||
builder.ins().jump(next_ebb, &[]);
|
||||
builder.seal_block(next_ebb); // The only predecessor is the current block.
|
||||
builder.switch_to_block(next_ebb);
|
||||
}
|
||||
|
||||
fn translate_br_if_args(
|
||||
|
||||
Reference in New Issue
Block a user