diff options
| author | Yong He <yonghe@outlook.com> | 2023-08-29 16:43:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-29 16:43:25 -0700 |
| commit | 019f702e24d2d1d6ecf53d71f87776a83db96608 (patch) | |
| tree | fc75001b121794b51d60a19d48b15f95797932a4 /source/slang/slang-ir-eliminate-phis.cpp | |
| parent | f3ecf978a07b02681a4d70a9d83991e6661bf753 (diff) | |
Wave intrinsics. (#3164)
* Wave intrinsics.
* scalar intrinsics.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-eliminate-phis.cpp')
| -rw-r--r-- | source/slang/slang-ir-eliminate-phis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-eliminate-phis.cpp b/source/slang/slang-ir-eliminate-phis.cpp index c628b937e..a17759fe6 100644 --- a/source/slang/slang-ir-eliminate-phis.cpp +++ b/source/slang/slang-ir-eliminate-phis.cpp @@ -531,7 +531,7 @@ struct PhiEliminationContext auto user = use->getUser(); m_builder.setInsertBefore(user); auto newVal = m_builder.emitLoad(temp); - use->set(newVal); + m_builder.replaceOperand(use, newVal); } // Once we've replaced all its uses, there is no need |
