llvm-project
97cb69ea - [SPIR-V] Rebuild multi-register aggregate arms from a typed placeholder (#236369)

Commit
1 day ago
[SPIR-V] Rebuild multi-register aggregate arms from a typed placeholder (#236369) `insertCompositeAggregateArms` rebuilds a multi-register aggregate arm (e.g. the result of `llvm.sincos`) of an aggregate select or PHI with `insertvalue`, starting from `poison`. It runs after `preprocessUndefsAndPoisons`, so that poison stayed bare and `visitInsertValueInst` turned it into `UndefValue::get(i32)`, which is uniqued: a second such chain in the function, or any `i32 undef`, then got the first chain's SPIR-V type, giving an invalid `OpCompositeInsert`. The chain now starts from the placeholder `preprocessUndefsAndPoisons` would have created. Assisted-by: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading