This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix SDWA peephole for V_AND_B32
ClosedPublic

Authored by nhaehnle on Apr 20 2018, 8:56 AM.

Details

Summary

Found by inspection. We care about the operand that *doesn't*
contain the immediate.

I believe this is currently not hit because we fold 0xff / 0xffff
immediates only later.

Change-Id: Ic3cf8538bc7da5eff3200d96eccf9d339e6345a7

Diff Detail

Event Timeline

nhaehnle created this revision.Apr 20 2018, 8:56 AM
This revision is now accepted and ready to land.Apr 20 2018, 9:21 AM
This revision was automatically updated to reflect the committed changes.