This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix selection failure with dead AssertZext
AbandonedPublic

Authored by arsenm on Sep 7 2016, 4:36 PM.

Details

Reviewers
tstellarAMD
Summary

Remove the dead AssertZext or else the ValueType operand will
fail to select for some reason.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 70619.Sep 7 2016, 4:36 PM
arsenm retitled this revision from to AMDGPU: Fix selection failure with dead AssertZext.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
nhaehnle added inline comments.Sep 9 2016, 1:37 AM
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
1554–1555

I think this should be outside the loop that iterates over It.

Also, is it a problem if all uses of the FI were removed for the current block, but there are uses in other blocks? Perhaps this check should only apply in the case where FI != EffectiveFI?

arsenm abandoned this revision.Sep 9 2016, 11:56 AM

It doesn't really matter because all of this code is broken anyway. I'll drop this and merge the testcase into D24328 which removes this whole thing