diff options
| author | Yong He <yonghe@outlook.com> | 2023-04-25 18:32:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 18:32:45 -0700 |
| commit | 1717c6c507043a5cc960c2344dd556524804ce59 (patch) | |
| tree | 4fd2cda4eb5553352dc6074ce86af5b00539150d /source/slang/slang-emit.cpp | |
| parent | 5abee6a0a30c7c965138ec7286b7f1b21b201731 (diff) | |
Support recomputing phi params in bwd prop func. (#2841)
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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, |
