Skip to content

fix(cgen): lower complex-times-real-scalar to elementwise multiplies (#630) - #878

Merged
godofecht merged 1 commit into
mainfrom
harvest/630-complex-scalar
Sep 11, 2026
Merged

godofecht merged 1 commit into
mainfrom
harvest/630-complex-scalar

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Closes #630. Complex * real scalar emitted a __mulsc3 call, blocking vectorization of complex elementwise loops. It now lowers to direct real/imag scalar multiplies via a statement-expression. Adds a unit test and a benchmark.

…lies (#630)

Complex * real scalar was emitting a __mulsc3 call, which blocks
vectorization of complex elementwise loops. Lower it to direct
real/imag scalar multiplies via a statement-expression instead.

Co-Authored-By: Claude <[email protected]>
@godofecht
godofecht merged commit 56c83ac into main Sep 11, 2026
18 of 22 checks passed
@godofecht
godofecht deleted the harvest/630-complex-scalar branch September 11, 2026 16:04
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.

Complex times a real scalar lowers to a __mulsc3 call, blocking vectorisation of complex elementwise loops

1 participant