This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Do not fix implicit vcc operand on INLINEASM
ClosedPublic

Authored by foad on Mar 29 2023, 7:22 AM.

Details

Reviewers
rampitec
Group Reviewers
Restricted Project
Commits
rG3e3594c771e6: [AMDGPU] Do not fix implicit vcc operand on INLINEASM
Summary

An INLINEASM can have an implicit def of vcc. It is not appropriate for
fixImplicitOperands to change this to vcc_lo on wave32.

Diff Detail

Event Timeline

foad created this revision.Mar 29 2023, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2023, 7:22 AM
foad requested review of this revision.Mar 29 2023, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2023, 7:22 AM
foad added inline comments.
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
7880

Instead of blacklisting inlineasm I could whitelist VALU and SALU instructions. I'm not sure which is better.

rampitec accepted this revision.Mar 29 2023, 11:09 AM
This revision is now accepted and ready to land.Mar 29 2023, 11:09 AM
This revision was landed with ongoing or failed builds.Mar 29 2023, 12:33 PM
This revision was automatically updated to reflect the committed changes.