From 14211ec3c4e56e59f479dbac23123ea61eab7d91 Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:57:53 -0500 Subject: Remove unnecessary parameters from Metal entry point signature (#6131) * fix metal entry point global params * address review comments, cleanup and test * remove dead code * undo accidental change * address review comments and cleanup * minor fix and cleanup --------- Co-authored-by: Yong He --- source/slang/slang-emit.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/slang/slang-emit.cpp') diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index d5c13121a..ea209b598 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -93,10 +93,8 @@ #include "slang-ir-ssa-simplification.h" #include "slang-ir-ssa.h" #include "slang-ir-string-hash.h" -#include "slang-ir-strip-cached-dict.h" #include "slang-ir-strip-default-construct.h" -#include "slang-ir-strip-witness-tables.h" -#include "slang-ir-strip.h" +#include "slang-ir-strip-legalization-insts.h" #include "slang-ir-synthesize-active-mask.h" #include "slang-ir-translate-glsl-global-var.h" #include "slang-ir-uniformity.h" @@ -1501,12 +1499,10 @@ Result linkAndOptimizeIR( break; } - stripCachedDictionaries(irModule); - // TODO: our current dynamic dispatch pass will remove all uses of witness tables. // If we are going to support function-pointer based, "real" modular dynamic dispatch, // we will need to disable this pass. - stripWitnessTables(irModule); + stripLegalizationOnlyInstructions(irModule); switch (target) { -- cgit v1.2.3