This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix assert on trunc from bitcast of build_vector
ClosedPublic

Authored by arsenm on Feb 5 2019, 8:13 AM.

Details

Summary

The v2i64 argument is lowered to a bitcast of v4i32 build_vector.
This would then attempt to use the i32-element as the source of the
vector truncate. This really would need to collect 2 elements from the
build_vector to produce the intended truncate.

Diff Detail

Event Timeline

arsenm created this revision.Feb 5 2019, 8:13 AM
kzhuravl accepted this revision.Feb 5 2019, 9:04 AM

LGTM

This revision is now accepted and ready to land.Feb 5 2019, 9:04 AM
arsenm closed this revision.Feb 5 2019, 11:23 AM

r353202