Unverified Commit c954986f authored by Michael Maitland's avatar Michael Maitland Committed by GitHub
Browse files

[GISel] Add support for scalable vectors in getGCDType (#80307)



This function can be called from buildCopyToRegs where at least one of
the types is a scalable vector type. This function crashed because it
did not know how to handle scalable vector types.

This patch extends the functionality of getGCDType to handle when at
least one of the types is a scalable vector. getGCDType between a fixed
and scalable vector is not implemented since the docstring of the
function explains that getGCDType is used to build MERGE/UNMERGE
instructions and we will never build a MERGE/UNMERGE between fixed and
scalable vectors.

---------

Co-authored-by: default avatarMatt Arsenault <arsenm2@gmail.com>
parent aeb58844
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment