This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Combine trunc with constant
AbandonedPublic

Authored by arsenm on Jan 14 2019, 11:49 PM.

Details

Summary

Fixes up the legalization created by requiring
a 32-bit shift amount type when producing a 64-bit
shift on AMDGPU.

Diff Detail

Event Timeline

arsenm created this revision.Jan 14 2019, 11:49 PM

Just checking, this is dependent on D55639?

Is this required for correctness? This looks like something that would fall in an actual combiner (vs the artifact combiner).

It depends on it only really for the tests. It shouldn’t be needed for correctness

It depends on it only really for the tests. It shouldn’t be needed for correctness

The legalizer artifact combiner was originally intended only to combine away legalization artifacts - which include extends, truncates, merges, build_vectors and not for generic combines. This change looks like it should belong in CombinerHelper.

This was reimplemented and committed by D69367