summaryrefslogtreecommitdiff
path: root/src/passes/LocalCSE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LocalCSE.cpp')
-rw-r--r--src/passes/LocalCSE.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/passes/LocalCSE.cpp b/src/passes/LocalCSE.cpp
index 863179e49..d63c217de 100644
--- a/src/passes/LocalCSE.cpp
+++ b/src/passes/LocalCSE.cpp
@@ -436,8 +436,7 @@ struct Checker
// nondeterministic: even if it has no side effects, if it may return a
// different result each time, then we cannot optimize away repeats.
if (effects.hasSideEffects() ||
- Properties::isIntrinsicallyNondeterministic(curr,
- getModule()->features)) {
+ Properties::isGenerative(curr, getModule()->features)) {
requestInfos.erase(curr);
} else {
activeOriginals.emplace(