summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-redundancy-removal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-redundancy-removal.cpp')
-rw-r--r--source/slang/slang-ir-redundancy-removal.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-ir-redundancy-removal.cpp b/source/slang/slang-ir-redundancy-removal.cpp
index 37e8ba5bb..227ef1d4d 100644
--- a/source/slang/slang-ir-redundancy-removal.cpp
+++ b/source/slang/slang-ir-redundancy-removal.cpp
@@ -23,6 +23,7 @@ struct RedundancyRemovalContext
case kIROp_And:
case kIROp_Or:
case kIROp_Not:
+ case kIROp_Neg:
case kIROp_FieldExtract:
case kIROp_FieldAddress:
case kIROp_GetElement:
@@ -43,6 +44,7 @@ struct RedundancyRemovalContext
case kIROp_MakeMatrixFromScalar:
case kIROp_MakeVectorFromScalar:
case kIROp_swizzle:
+ case kIROp_swizzleSet:
case kIROp_MatrixReshape:
case kIROp_MakeString:
case kIROp_MakeResultError:
@@ -59,6 +61,8 @@ struct RedundancyRemovalContext
case kIROp_BitOr:
case kIROp_BitXor:
case kIROp_BitCast:
+ case kIROp_IntCast:
+ case kIROp_FloatCast:
case kIROp_Reinterpret:
case kIROp_Greater:
case kIROp_Less: