Skip to content

[X86][TTI] Handle structs in areTypesABICompatible() - #205308

Merged
nikic merged 1 commit into
llvm:mainfrom
nikic:users/nikic/x86tti-handle-structs-in-aretypesabicompatible-1
Jun 23, 2026
Merged

nikic merged 1 commit into
llvm:mainfrom
nikic:users/nikic/x86tti-handle-structs-in-aretypesabicompatible-1

Conversation

@nikic

@nikic nikic commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes a regression from #205106. getValueType() asserts on aggregate
types. Use CompuateValueVTs() to compute the de-aggregated VTs.

Performing argument promotion for struct types seems pretty
dubious to me, but it was previously allowed, so I'm retaining
that behavior. We may want to disable promotion of aggregates
in ArgPromotion entirely though.

Fixes a regression from llvm#205106. getValueType() asserts on aggregate
types. Use CompuateValueVTs() to compute the de-aggregated VTs.

Performing argument promotion for struct types seems pretty
dubious to me, but it was previously allowed, so I'm retaining
that behavior. We may want to disable promotion of aggregates
in ArgPromotion entirely though.
@nikic nikic added the skip-precommit-approval PR for CI feedback, not intended for review label Jun 23, 2026
@nikic
nikic merged commit 649e3e0 into llvm:main Jun 23, 2026
6 of 10 checks passed
@nikic
nikic deleted the users/nikic/x86tti-handle-structs-in-aretypesabicompatible-1 branch June 23, 2026 09:57
beamandala pushed a commit to beamandala/llvm-project that referenced this pull request Jun 24, 2026
Fixes a regression from llvm#205106. getValueType() asserts on aggregate
types. Use CompuateValueVTs() to compute the de-aggregated VTs.

Performing argument promotion for struct types seems pretty
dubious to me, but it was previously allowed, so I'm retaining
that behavior. We may want to disable promotion of aggregates
in ArgPromotion entirely though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:X86 llvm:transforms skip-precommit-approval PR for CI feedback, not intended for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant