diff options
| author | Yong He <yonghe@outlook.com> | 2023-04-10 14:36:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-10 14:36:39 -0700 |
| commit | d934bbcc5702ebd8964f65b1708c239c29320103 (patch) | |
| tree | 0c34aeddc873e65b76553fe28bfdd7b9cc830292 /source/slang/slang-ir-autodiff-rev.cpp | |
| parent | d82992e30d5985001870e00afdf27091f59464f2 (diff) | |
Fix inlining. (#2786)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-autodiff-rev.cpp')
| -rw-r--r-- | source/slang/slang-ir-autodiff-rev.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-ir-autodiff-rev.cpp b/source/slang/slang-ir-autodiff-rev.cpp index 66c85647f..0bdc4a935 100644 --- a/source/slang/slang-ir-autodiff-rev.cpp +++ b/source/slang/slang-ir-autodiff-rev.cpp @@ -13,6 +13,7 @@ #include "slang-ir-redundancy-removal.h" #include "slang-ir-dominators.h" #include "slang-ir-loop-unroll.h" +#include "slang-ir-inline.h" namespace Slang { @@ -521,6 +522,8 @@ namespace Slang { removeLinkageDecorations(func); + performForceInlining(func); + DifferentiableTypeConformanceContext diffTypeContext(autoDiffSharedContext); diffTypeContext.setFunc(func); |
