Skip to content

Commit b072b5e

Browse files
authored
Nuke the old structurizer (#658)
1 parent c829157 commit b072b5e

File tree

5 files changed

+483
-1341
lines changed

5 files changed

+483
-1341
lines changed

crates/rustc_codegen_spirv/src/link.rs

-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,6 @@ fn do_link(
539539
inline: legalize,
540540
mem2reg: legalize,
541541
structurize: env::var("NO_STRUCTURIZE").is_err(),
542-
use_new_structurizer: env::var("OLD_STRUCTURIZER").is_err(),
543542
emit_multiple_modules,
544543
};
545544

crates/rustc_codegen_spirv/src/linker/mod.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ mod duplicates;
66
mod import_export_link;
77
mod inline;
88
mod mem2reg;
9-
mod new_structurizer;
109
mod peephole_opts;
1110
mod simple_passes;
1211
mod specializer;
@@ -29,7 +28,6 @@ pub struct Options {
2928
pub inline: bool,
3029
pub mem2reg: bool,
3130
pub structurize: bool,
32-
pub use_new_structurizer: bool,
3331
pub emit_multiple_modules: bool,
3432
}
3533

@@ -190,11 +188,7 @@ pub fn link(sess: &Session, mut inputs: Vec<Module>, opts: &Options) -> Result<L
190188

191189
let mut output = if opts.structurize {
192190
let _timer = sess.timer("link_structurize");
193-
if opts.use_new_structurizer {
194-
new_structurizer::structurize(output, unroll_loops_decorations)
195-
} else {
196-
structurizer::structurize(sess, output, unroll_loops_decorations)
197-
}
191+
structurizer::structurize(output, unroll_loops_decorations)
198192
} else {
199193
output
200194
};

0 commit comments

Comments
 (0)