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
Details
Diff Detail
Diff Detail
Paths
| Differential D88031
GlobalISel: Fix truncating shift amount in trunc (shl) combine ClosedPublic Authored by arsenm on Sep 21 2020, 9:36 AM.
Details
Diff Detail
Revision Contents
Diff 293201 llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/combine-trunc.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-trunc-shl.mir
|