Skip to content

Commit

Permalink
Add explanations for CSE and DCE to Glossary.md (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
renxida authored Mar 29, 2024
1 parent 5562e5c commit a7e1dae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/content/getting_started/Glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ Conversion refers to a transformation between (or within) dialects, but all
still within MLIR, whereas translation refers to a transformation between MLIR
and an external representation.

### [CSE (Constant Subexpression Elimination)](../docs/Passes/#-cse)

CSE eliminates expressions computing already-computed values.

### DCE (Dead Code Elimination)

DCE removes unreachable code and expressions leading to unused results.

The [canonicalize pass](https://mlir.llvm.org/docs/Canonicalization/) performs DCE as part of the canonicalization.

#### [Declarative Rewrite Rule](../docs/DeclarativeRewrites) (DRR)

A [rewrite rule](https://en.wikipedia.org/wiki/Graph_rewriting) which can be
Expand Down

0 comments on commit a7e1dae

Please sign in to comment.