diff options
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 74b11079d..16164b957 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -698,6 +698,15 @@ Result linkAndOptimizeIR( // bit_cast on basic types. lowerBitCast(targetRequest, irModule); eliminateDeadCode(irModule); + + + // We include one final step to (optionally) dump the IR and validate + // it after all of the optimization passes are complete. This should + // reflect the IR that code is generated from as closely as possible. + // +#if 0 + dumpIRIfEnabled(compileRequest, irModule, "OPTIMIZED"); +#endif validateIRModuleIfEnabled(compileRequest, irModule); return SLANG_OK; |
