From 1717c6c507043a5cc960c2344dd556524804ce59 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 25 Apr 2023 18:32:45 -0700 Subject: Support recomputing phi params in bwd prop func. (#2841) --- source/slang/slang-emit.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 0b88bd057..4412eccb8 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -537,17 +537,12 @@ Result linkAndOptimizeIR( } else { -#if 0 - // On CPU/CUDA targets, we simply elminate any empty types. - // TODO: disable for now, since the CPU compute shader - // trampoline is still hard coded to assume there are - // entrypoint and global parameters. renable when - // we fix that logic. + // On CPU/CUDA targets, we simply elminate any empty types if + // they are not part of public interface. legalizeEmptyTypes( irModule, sink); eliminateDeadCode(irModule); -#endif } // Once specialization and type legalization have been performed, -- cgit v1.2.3