This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Match andn2/orn2 for more types
ClosedPublic

Authored by arsenm on Aug 4 2020, 5:38 AM.

Details

Summary

Unfortunately this ends up not working as expected on targets with
16-bit operations due to AMDGPUCodeGenPrepare's promotion of uniform
16-bit ops to i32.

The vector case annoyingly requires switching the checked opcode,
since constants for vectors aren't directly handled.

I also need to think more carefully about whether this is valid for i1.

Diff Detail