This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Teach lowerScalarInsert to handle scalar value is the first element of a fixed vector.
ClosedPublic

Authored by fakepaper56 on Aug 2 2023, 1:42 AM.

Details

Summary

D155929 teach lowerScalarInsert to handl start value (extractelement scalable_vector, 0)
and specifically converts fixed extracted vectors to scalable vectors when
lowering vector reduction. It's not enough because there is another way to
create (extractelement fixed_vector, 0) as a start value of lowerScalarInsert
like #64327.

#64327: https://github.com/llvm/llvm-project/issues/64327.

Diff Detail

Event Timeline

fakepaper56 created this revision.Aug 2 2023, 1:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2023, 1:42 AM
fakepaper56 requested review of this revision.Aug 2 2023, 1:42 AM
fakepaper56 edited the summary of this revision. (Show Details)Aug 2 2023, 1:43 AM

I am sorry that the fix had ever been D155929, but I guess I misunderstood the branch and updated the wrong code. I am very sorry to the reviewers.

This revision is now accepted and ready to land.Aug 2 2023, 10:18 AM