mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 14:35:14 +01:00
Actually skip omitted predicates in open loop
This commit is contained in:
@@ -396,10 +396,14 @@ pub fn open_loop(
|
||||
});
|
||||
}
|
||||
|
||||
for cond in predicates
|
||||
for (i, cond) in predicates
|
||||
.iter()
|
||||
.filter(|cond| cond.should_eval_at_loop(table_index))
|
||||
.enumerate()
|
||||
.filter(|(_, cond)| cond.should_eval_at_loop(table_index))
|
||||
{
|
||||
if t_ctx.omit_predicates.contains(&i) {
|
||||
continue;
|
||||
}
|
||||
let jump_target_when_true = program.allocate_label();
|
||||
let condition_metadata = ConditionMetadata {
|
||||
jump_if_condition_is_true: false,
|
||||
|
||||
Reference in New Issue
Block a user