This is an archive of the discontinued LLVM Phabricator instance.

[amdgpu] Update med3 combine to skip i64
ClosedPublic

Authored by JonChesterfield on Mar 18 2021, 8:26 AM.

Details

Summary

[amdgpu] Update med3 combine to skip i64

Fixes an assumption that a type which is not i32 will be i16. This asserts
when trying to sign/zero extend an i64 to i32.

Test case was cut down from an openmp application. Variations on it are hit by
other combines before reaching the problematic one, e.g. replacing the
immediate values with other function arguments changes the codegen path and
misses this combine.

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.Mar 18 2021, 8:26 AM
Herald added a project: Restricted Project. · View Herald Transcript

Reviewer list derived from git blame + frequency.

arsenm accepted this revision.Mar 18 2021, 8:35 AM
This revision is now accepted and ready to land.Mar 18 2021, 8:35 AM
This revision was landed with ongoing or failed builds.Mar 18 2021, 8:57 AM
This revision was automatically updated to reflect the committed changes.