HomePhabricator

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

Authored by arsenm on Sep 19 2020, 5:26 AM.

Description

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

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.

Details

Committed
arsenmWed, Sep 23, 6:07 AM
Parents
rGaf0207f2bae8: AMDGPU: Check global FP atomics match default FP mode
Branches
Unknown
Tags
Unknown