Skip to content

Commit

Permalink
add example of DCE
Browse files Browse the repository at this point in the history
  • Loading branch information
bollu committed Dec 10, 2021
1 parent 87cb850 commit 5bcf95d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/dead-code-elimination.mlir
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
func @main() {
%x = dead
%y = dead
%z = asm.add %x, %y
%w = dead // should be removed by DCE
return
}

0 comments on commit 5bcf95d

Please sign in to comment.