This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Check for other defs when folding conditions into s_andn2_b64
ClosedPublic

Authored by arsenm on Jul 28 2020, 10:57 AM.

Details

Reviewers
rampitec
Summary

We can't fold the masked compare value through the select if the
select condition is re-used after the and instruction. Fixes a
verifier error and trying to use the outgoing value defined in the
block.

I'm not sure why this pass is bothering to handle physregs. It's
making this more complex and forces extra liveness computation.

Diff Detail

Event Timeline

arsenm created this revision.Jul 28 2020, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2020, 10:57 AM
arsenm requested review of this revision.Jul 28 2020, 10:57 AM
rampitec accepted this revision.Jul 28 2020, 1:07 PM
This revision is now accepted and ready to land.Jul 28 2020, 1:07 PM