scalarize select condition for LLVM where possible by abadams · Pull Request #8575 · halide/Halide · GitHub
Skip to content

scalarize select condition for LLVM where possible#8575

Merged
abadams merged 1 commit into
mainfrom
abadams/scalarize_select
Feb 14, 2025
Merged

scalarize select condition for LLVM where possible#8575
abadams merged 1 commit into
mainfrom
abadams/scalarize_select

Conversation

@abadams

@abadams abadams commented Feb 13, 2025

Copy link
Copy Markdown
Member

I found a case where LLVM was generating worse code for a select on a broadcast of a scalar condition than a select on a scalar condition directly. This change just strips any broadcast around a select condition to help LLVM out.

@abadams

abadams commented Feb 13, 2025

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants