This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Preserve vcc undef flags when inverting branch
ClosedPublic

Authored by arsenm on Nov 2 2016, 2:19 PM.

Details

Reviewers
tstellarAMD
Summary

If the branch was on a read-undef of vcc, passes that used
analyzeBranch to invert the branch condition wouldn't preserve
the undef flag resulting in a verifier error.

Fixes verifier failures in a future commit.

Also fix verifier error when inserting copy for vccz corruption bug.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 76785.Nov 2 2016, 2:19 PM
arsenm retitled this revision from to AMDGPU: Preserve vcc undef flags when inverting branch.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
arsenm updated this revision to Diff 76787.Nov 2 2016, 2:22 PM
arsenm edited edge metadata.

Fix formatting

tstellarAMD accepted this revision.Nov 3 2016, 6:50 AM
tstellarAMD edited edge metadata.

Would it be possible to write a MIR test for this?

This revision is now accepted and ready to land.Nov 3 2016, 6:50 AM
arsenm closed this revision.Nov 7 2016, 11:19 AM

r286133 with MIR tests