This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Start selecting s_xnor_{b32, b64}
ClosedPublic

Authored by kzhuravl on Sep 18 2017, 10:21 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Sep 18 2017, 10:21 AM
arsenm accepted this revision.Sep 18 2017, 10:40 AM

LGTM

lib/Target/AMDGPU/SIInstrInfo.cpp
3822 ↗(On Diff #115673)

const reference

test/CodeGen/AMDGPU/xnor.ll
18 ↗(On Diff #115673)

The positive checks for the expected expanded instructions are generally more reliable

This revision is now accepted and ready to land.Sep 18 2017, 10:40 AM
arsenm added inline comments.Sep 18 2017, 10:46 AM
lib/Target/AMDGPU/SOPInstructions.td
396 ↗(On Diff #115673)

Minor clean would be not use the not PatFrag rather than xor -1 yourself

This revision was automatically updated to reflect the committed changes.
kzhuravl marked 3 inline comments as done.