This is an archive of the discontinued LLVM Phabricator instance.

[DirectX backend] When cleanup module flags only remove unused flags.
ClosedPublic

Authored by python3kgae on May 17 2022, 4:58 PM.

Details

Summary

Only remove dx.valver from module flags when cleanup module flags in DXILTranslateMetadataPass.

Diff Detail

Event Timeline

python3kgae created this revision.May 17 2022, 4:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2022, 4:58 PM
python3kgae requested review of this revision.May 17 2022, 4:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2022, 4:58 PM
beanz added inline comments.May 19 2022, 11:44 AM
llvm/test/CodeGen/DirectX/dxil_ver.ll
8

You should verify that the module flags array only has one element.

Update test to make sure only 1 operand left for module flags.

beanz accepted this revision.May 19 2022, 1:15 PM

LGTM.

This revision is now accepted and ready to land.May 19 2022, 1:15 PM
This revision was landed with ongoing or failed builds.May 19 2022, 2:50 PM
This revision was automatically updated to reflect the committed changes.