This is an archive of the discontinued LLVM Phabricator instance.

[DirectX backend] Remove Attribute not for DXIL on CallInst
ClosedPublic

Authored by python3kgae on Sep 4 2022, 4:08 PM.

Details

Summary

Remove Attribute on CallInst which is not for DXIL when prepare for DXIL.

Diff Detail

Event Timeline

python3kgae created this revision.Sep 4 2022, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2022, 4:08 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
python3kgae requested review of this revision.Sep 4 2022, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2022, 4:08 PM
nikic added a subscriber: nikic.Sep 5 2022, 12:31 AM
nikic added inline comments.
llvm/lib/Target/DirectX/DXILPrepare.cpp
163

Don't know if DXIL has invokes, but using CallBase here might be better to handle those as well.

Use CallBase to cover both CallInst and Invoke

python3kgae marked an inline comment as done.Sep 5 2022, 10:11 AM
python3kgae added inline comments.
llvm/lib/Target/DirectX/DXILPrepare.cpp
163

Fixed. Thanks for pointing it out.

beanz accepted this revision.Sep 13 2022, 11:37 AM

Looks good to me.

This revision is now accepted and ready to land.Sep 13 2022, 11:37 AM
This revision was automatically updated to reflect the committed changes.
python3kgae marked an inline comment as done.