From 9833ff9a3d121b974cdaa21708eedb50e9d560cc Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 27 Sep 2023 11:46:29 -0700 Subject: Fix `isMovableInst`. (#3243) Co-authored-by: Yong He --- source/slang/slang-ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 675667dbc..408b87e49 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -8216,7 +8216,7 @@ namespace Slang case kIROp_Call: // Similar to the case in IRInst::mightHaveSideEffects, pure // calls are ok - return isSideEffectFreeFunctionalCall(cast(inst)); + return isPureFunctionalCall(cast(inst)); case kIROp_Load: // Load is generally not movable, an exception is loading a global constant buffer. if (auto load = as(inst)) -- cgit v1.2.3