inducer / inducer/pytato

Code generation for concatenate should be tree-of-ifs, not chain-of-ifs

Open
#495 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
15
Forks
16
Avg merge
17m
Merged PRs (30d)
1

Description

https://github.com/inducer/pytato/blob/5aa8aa3a18c50fa5db4bae0e3fe87dcade8b1b78/pytato/transform/lower_to_index_lambda.py#L140-L186

cc @majosm

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at pytato/transform/lower_to_index_lambda.py lines 140-186 and trace how concatenate is lowered. Compare the generated chain-of-ifs with the requested tree-of-ifs structure; done means concatenate code generation uses the tree shape while preserving existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.