llvm-project
a24fae3a - [AMDGPU][True16][GlobalISel] Fix v2*16 build_vector patterns (#151496)

Commit
164 days ago
[AMDGPU][True16][GlobalISel] Fix v2*16 build_vector patterns (#151496) - Pattern with IMPLICIT_DEF failed to generate an entry in MatchTable and did not report an error, just silently failed. This is fixed by casting IMPLICIT_DEF to appropriate type. This also fixes selecting "build_vector s16, undef" for GlobalISel with True16. - Add pattern for "build_vector undef, s16" that will work for GlobalISel. True16 GlobalISel has a G_TRUNC that it needs to deal with. - Use REG_SEQUENCE for Real16 patterns instead of V_LSHLREV_B32_e64 to generate more optimal code.
Author
Parents
Loading