Skip to content

[M8] Implement evidence-backed compatibility-safe optimizations #52

Description

@Teakowa

Parent: #9

Depends on: #50, #51, #53

Planning status: provisional until the M7 gate is complete.

Goal

Implement only optimizations whose Workshop semantics and resource benefits are demonstrated by compatibility/scenario evidence and measured through Wright's shared cost model.

Scope

  • Select candidate transformations from real generated WIR/resource profiles rather than hypothetical compiler theory.
  • Implement correctness-first canonicalization and resource-reducing passes suitable for compat mode.
  • Require N-level and relevant E-level regression coverage for each optimization.
  • Keep transformations with unresolved Workshop typing/timing behavior disabled in compat and, if useful, experimental in aggressive.
  • Record before/after WIR and [M8] Define Workshop cost model and performance/resource benchmarking #53 cost/resource snapshots for review/debugging.
  • Reuse [M8] Define Workshop cost model and performance/resource benchmarking #53 cost semantics rather than defining pass-specific resource scores or incompatible metrics.

Non-goals

  • Maximizing optimization count.
  • Enabling aggressive transformations by default.
  • Optimizing away observable Workshop timing/control-flow semantics.
  • Inventing optimizer-local cost definitions that cannot be consumed by other Wright APIs.

Acceptance criteria

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions