diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-12 16:00:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-12 16:00:05 -0700 |
| commit | 261b2f1f2bc13ccf7db5ec68c825ffc7b0781f7f (patch) | |
| tree | 4953e376e705a8110cb8164dda5b239c04f2768b /source/slang/slang-ir-redundancy-removal.cpp | |
| parent | bbd9c2e6d7b57f5acc3238083ab2f7c7b140df5e (diff) | |
Use scratchData on `IRInst` to replace HashSets. (#2978)
* Use scratchData on `IRInst` to replace HashSets.
* Update test results.
* Initialize scratchData.
* Update autodiff documentation.
* Use enum instead of bool.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-redundancy-removal.cpp')
| -rw-r--r-- | source/slang/slang-ir-redundancy-removal.cpp | 4 |
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: |
