From f88e1299b7715190ce82f3f4473f0d0eeaa2000e Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 23 May 2023 15:19:27 -0700 Subject: Add API for querying total compile time. (#2898) * Add API for querying total compile time. * Optimize. * Remove redundant simplifyIR calls. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 071ea9639..a96cb6908 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -584,17 +584,14 @@ Result linkAndOptimizeIR( specializeResourceUsage(codeGenContext, irModule); specializeFuncsForBufferLoadArgs(codeGenContext, irModule); - // - simplifyIR(irModule); - // For GLSL targets, we also want to specialize calls to functions that // takes array parameters if possible, to avoid performance issues on // those platforms. if (isKhronosTarget(targetRequest)) { specializeArrayParameters(codeGenContext, irModule); - simplifyIR(irModule); } + simplifyIR(irModule); // Rewrite functions that return arrays to return them via `out` parameter, // since our target languages doesn't allow returning arrays. -- cgit v1.2.3