This is an archive of the discontinued LLVM Phabricator instance.

[X86] Do not lower INSERT_VECTOR_ELT to vselect for vXf16 without BWI
ClosedPublic

Authored by pengfei on Jan 13 2023, 1:30 AM.

Details

Summary

We cannot handle i8/i16/f16 vselect without BWI.

Fixes #59980

Diff Detail

Event Timeline

pengfei created this revision.Jan 13 2023, 1:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 1:30 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
pengfei requested review of this revision.Jan 13 2023, 1:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 1:30 AM
RKSimon accepted this revision.Jan 13 2023, 2:35 AM

LGTM with a few minor style suggestions

llvm/test/CodeGen/X86/pr59980.ll
8

(style) simplify these names / types and attributes (define void @PR59980) - strip noalias/nocapture/dereferenceable etc.

This revision is now accepted and ready to land.Jan 13 2023, 2:35 AM
skan accepted this revision.Jan 13 2023, 2:58 AM

You can use opt --metarenamer to do the renaming

lebedev.ri added inline comments.
llvm/test/CodeGen/X86/pr59980.ll
28

Please don't add new tests with typed pointers.

pengfei updated this revision to Diff 489183.Jan 13 2023, 7:16 PM
pengfei marked 2 inline comments as done.

You can use opt --metarenamer to do the renaming

Thanks for the review! I used opt -passes=metarenamer,strip llvm/test/CodeGen/X86/pr59980.ll -S -o - --opaque-pointers. It reduces many manual work :)

This revision was landed with ongoing or failed builds.Jan 13 2023, 10:22 PM
This revision was automatically updated to reflect the committed changes.