This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Patterns for vector conversion between half and float
ClosedPublic

Authored by ostannard on Feb 9 2022, 9:50 AM.

Details

Summary

These patterns were omitted because clang only allows converting between these types using intrinsics, but other front-ends or optimisation passes may want to use them.

Diff Detail

Event Timeline

ostannard created this revision.Feb 9 2022, 9:50 AM
ostannard requested review of this revision.Feb 9 2022, 9:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2022, 9:50 AM
srhines accepted this revision.Feb 9 2022, 2:44 PM

Thanks for getting this fixed quickly!

This revision is now accepted and ready to land.Feb 9 2022, 2:44 PM
SjoerdMeijer added inline comments.Feb 10 2022, 1:14 AM
llvm/test/CodeGen/ARM/fp16-vector-cvt.ll
13

These scalar variants are not related to the added vector patterns, and also seem to be tested in existing tests (which is what I was hoping). Do we need this? I only quickly grep'ed for this variant, not the other scalar variants below, but same question for those.

The change here LGTM too. Remember to upload with context :)

llvm/test/CodeGen/ARM/fp16-vector-cvt.ll
5

I think you can remove this, and the "hidden"s below too.

ostannard marked 2 inline comments as done.Feb 10 2022, 1:51 AM
This revision was landed with ongoing or failed builds.Feb 10 2022, 1:56 AM
This revision was automatically updated to reflect the committed changes.