summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir-redundancy-removal.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/slang/slang-ir-redundancy-removal.cpp b/source/slang/slang-ir-redundancy-removal.cpp
index e0bb0b224..5f476188e 100644
--- a/source/slang/slang-ir-redundancy-removal.cpp
+++ b/source/slang/slang-ir-redundancy-removal.cpp
@@ -19,7 +19,6 @@ struct RedundancyRemovalContext
case kIROp_Add:
case kIROp_Sub:
case kIROp_Mul:
- case kIROp_Div:
case kIROp_FRem:
case kIROp_IRem:
case kIROp_Lsh:
@@ -78,8 +77,6 @@ struct RedundancyRemovalContext
case kIROp_ExtractExistentialValue:
case kIROp_ExtractExistentialWitnessTable:
return true;
- case kIROp_Call:
- return isPureFunctionalCall(as<IRCall>(inst));
case kIROp_Load:
// Load is generally not movable, an exception is loading a global constant buffer.
if (auto load = as<IRLoad>(inst))