diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-10 14:57:30 -0700 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2020-06-10 14:57:30 -0700 |
| commit | 8de0a2ebc58c510d62df1a3d211643bfb463d9c4 (patch) | |
| tree | 580a0ff44ba610e0351b979b9c65f860b0224b09 /source/slang/slang-emit.cpp | |
| parent | 98459bac44711237b8d3629a51a8ba0c01163756 (diff) | |
Add compiler flag to disable specialization pass.
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 12996e783..3e0d6ae26 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -270,7 +270,8 @@ Result linkAndOptimizeIR( // perform specialization of functions based on parameter // values that need to be compile-time constants. // - specializeModule(irModule); + if (!compileRequest->allowDynamicCode) + specializeModule(irModule); // Debugging code for IR transformations... #if 0 |
