Page MenuHomePhabricator

GlobalISel: Fix truncating shift amount in trunc (shl) combine

Authored by arsenm on Sep 21 2020, 9:36 AM.



The shift amount type does not necessarily match the result type. This
was inserting a trunc from s32 to s32, which asserted. Just preserve
the original shift amount type which can be legalized later.

Diff Detail

Event Timeline

arsenm created this revision.Sep 21 2020, 9:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2020, 9:36 AM
arsenm requested review of this revision.Sep 21 2020, 9:36 AM
This revision is now accepted and ready to land.Sep 21 2020, 9:40 AM