This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Stop adding an implicit def of vcc_hi for wave32
ClosedPublic

Authored by foad on Dec 1 2020, 8:57 AM.

Details

Summary

This doesn't seem to be needed for anything.

Diff Detail

Event Timeline

foad created this revision.Dec 1 2020, 8:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2020, 8:57 AM
foad requested review of this revision.Dec 1 2020, 8:57 AM
arsenm accepted this revision.Dec 1 2020, 10:04 AM

LGTM, this was really annoying

llvm/lib/Target/AMDGPU/SIISelLowering.cpp
11567

We should really fix the need for this loop too

This revision is now accepted and ready to land.Dec 1 2020, 10:04 AM
foad added inline comments.Dec 1 2020, 11:12 AM
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
11567

How? Would you need separate wave32/wave64 versions of every pseudo that has an implicit VCC operand? There are quite a few of those.

arsenm added inline comments.Dec 1 2020, 11:40 AM
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
11567

Yes, I think having to fixup every instruction is error prone and we have hit bugs from doing this

This revision was automatically updated to reflect the committed changes.