diff --git a/src/ir/mod.rs b/src/ir/mod.rs index 8a1872f..518e275 100644 --- a/src/ir/mod.rs +++ b/src/ir/mod.rs @@ -252,7 +252,7 @@ impl HasDtype for Instruction { } impl Instruction { - pub fn is_pure(&self) -> bool { + pub fn has_no_side_effects(&self) -> bool { !matches!(self, Self::Store { .. } | Self::Call { .. }) } }