summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-27 11:46:29 -0700
committerGitHub <noreply@github.com>2023-09-27 11:46:29 -0700
commit9833ff9a3d121b974cdaa21708eedb50e9d560cc (patch)
tree5cff76ce8719ed6e46a438200787ea72574b679d /source
parent8326248542c2196b4a4ba80f068adb8a0edd6006 (diff)
Fix `isMovableInst`. (#3243)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir.cpp2
1 files changed, 1 insertions, 1 deletions
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<IRCall>(inst));
+ return isPureFunctionalCall(cast<IRCall>(inst));
case kIROp_Load:
// Load is generally not movable, an exception is loading a global constant buffer.
if (auto load = as<IRLoad>(inst))