This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Tolerate negated control flow intrinsic outputs
ClosedPublic

Authored by arsenm on Aug 25 2020, 5:21 PM.

Details

Summary

If the condition output is negated, swap the branch targets. This is
similar to what SelectionDAG does for when SelectionDAG builder
decides to invert the condition and swap the branches.

This is leaving behind a dead constant def for some reason.

Diff Detail

Event Timeline

arsenm created this revision.Aug 25 2020, 5:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2020, 5:21 PM
arsenm requested review of this revision.Aug 25 2020, 5:21 PM
foad accepted this revision.Aug 26 2020, 12:50 AM
This revision is now accepted and ready to land.Aug 26 2020, 12:50 AM

Great, thanks for doing this.