From 64124bb68d470b5ad8e1f8eedcce918603bdb105 Mon Sep 17 00:00:00 2001 From: Minseong Jang Date: Mon, 2 May 2022 19:31:18 +0900 Subject: [PATCH] Change function name `Instruction::is_pure` -> `Instruction::has_no_side_effects` --- src/ir/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { .. }) } }