We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13276ac commit 5554b9cCopy full SHA for 5554b9c
src/shady/compile.c
@@ -88,12 +88,16 @@ void add_scheduler_source(const CompilerConfig* config, Module* dst) {
88
}
89
90
CompilationResult run_compiler_passes(CompilerConfig* config, Module** pmod) {
91
- if (config->dynamic_scheduling) {
92
- add_scheduler_source(config, *pmod);
93
- }
94
-
95
IrArena* initial_arena = (*pmod)->arena;
96
Module* old_mod = NULL;
+
+ if (config->dynamic_scheduling) {
+ *pmod = import(config, *pmod); // we don't want to mess with the original module
97
+ add_scheduler_source(config, *pmod);
98
+ log_module(ERROR, config, *pmod);
99
+ //exit(0);
100
+ }
101
102
RUN_PASS(reconvergence_heuristics)
103
0 commit comments