Skip to content
Snippets Groups Projects

Fix 'Branch' not being a terminator with 'is_terminator'

Merged rarbore2 requested to merge fix_sched into main
1 file
+ 14
1
Compare changes
  • Side-by-side
  • Inline
@@ -412,6 +412,19 @@ impl SInst {
}
}
pub fn is_branch(&self) -> bool {
if let SInst::Branch {
cond: _,
false_target: _,
true_target: _,
} = self
{
true
} else {
false
}
}
pub fn is_partition_exit(&self) -> bool {
if let SInst::PartitionExit { data_outputs: _ } = self {
true
@@ -429,7 +442,7 @@ impl SInst {
}
pub fn is_terminator(&self) -> bool {
self.is_jump() || self.is_partition_exit() || self.is_return()
self.is_jump() || self.is_branch() || self.is_partition_exit() || self.is_return()
}
pub fn try_thread_id(&self) -> Option<(usize, ForkJoinID)> {
Loading