diff options
| author | Yong He <yonghe@outlook.com> | 2021-09-14 11:36:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 14:36:44 -0400 |
| commit | 11d43642008905ac69a3832eb8a9b2ae7b785f86 (patch) | |
| tree | 0d51bc6d16fbbb7a37148230f3bd37cc861830d4 /source/slang/slang-ir-any-value-marshalling.cpp | |
| parent | 502aa3812a82cf0d091cff0c67804e4ee448ac78 (diff) | |
Avoid upcasting to f32 in 16bit float-uint bit cast. (#1938)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-marshalling.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index b88dd79d1..c7f40efc0 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -284,9 +284,6 @@ namespace Slang auto dstVal = builder->emitLoad(dstAddr); if (intraFieldOffset == 0) { - srcVal = builder->emitBitAnd( - srcVal->getFullType(), srcVal, - builder->getIntValue(builder->getUIntType(), 0xFFFF)); dstVal = builder->emitBitAnd( dstVal->getFullType(), dstVal, builder->getIntValue(builder->getUIntType(), 0xFFFF0000)); |
