Skip to content

scalarize select condition for LLVM where possible#8575

Merged
abadams merged 1 commit intomainfrom
abadams/scalarize_select
Feb 14, 2025
Merged

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

Conversation

@abadams
Copy link
Copy Markdown
Member

@abadams abadams commented Feb 13, 2025

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
Copy link
Copy Markdown
Member Author

abadams commented Feb 13, 2025

(This is due to #8465)

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