EnzymeAD / EnzymeAD/Enzyme-JAX

Case Op unused result

Open
#3,198 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MLIR
Stars
131
Forks
53
Avg merge
1d 10h
Merged PRs (30d)
193

Description

https://github.com/EnzymeAD/Enzyme-JAX/blob/2f3e6187a4fb8e1e2d1b499942d4aadaa797cd59/test/lit_tests/diffrules/stablehlo/case_remove.mlir#L77-L78

should be able to drop result 0 and 2, 3 by adding a pattern in EnzymeHLOOpt for this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with test/lit_tests/diffrules/stablehlo/case_remove.mlir at lines 77-78 and inspect the surrounding case-removal behavior. Then locate EnzymeHLOOpt and its existing patterns; done means the unused results 0, 2, and 3 are dropped and the relevant lit test passes.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.