MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / set_optimize

Method set_optimize

src/compilation_pipeline.rs:621–623  ·  view source on GitHub ↗

Enable IR-level optimization passes (constant folding, dead-code elimination). Off by default so IR/assembly goldens stay stable; when on, the passes run on the lowered IR before backend lowering.

(&mut self, opts: OptOptions)

Source from the content-addressed store, hash-verified

619 /// Enable the conservative assembly peephole pass. Off by default, because it
620 /// rewrites the token stream and the `.s` text rendered from it.
621 pub fn set_peephole(&mut self, enabled: bool) {
622 self.peephole = enabled;
623 }
624
625 /// Keep hot scalars in callee-saved registers (s2-s11) instead of stack slots.
626 /// On by default; off gives the pure stack-slot lowering for shape comparisons.

Callers 2

run_hll_optimizeFunction · 0.80

Calls

no outgoing calls