Skip to content

Simplify after DCE requires second pass #317

@boopathi

Description

@boopathi
function foo() {
  const a = 5;
  return a + 5;
}

output:

function foo() {
  return 5 + 5;
}

Deadcode elimination is now run last, so we don't have anything after DCE. It requires a second pass to optimize this further.

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