This is an archive of the discontinued LLVM Phabricator instance.

[X86] Promote v32f16's fadd into v32f32's fadd when it is avx512 without avx512fp16
ClosedPublic

Authored by yubing on Jul 18 2022, 10:37 PM.

Diff Detail

Event Timeline

yubing created this revision.Jul 18 2022, 10:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 10:37 PM
yubing requested review of this revision.Jul 18 2022, 10:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 10:37 PM
pengfei added inline comments.Jul 18 2022, 10:41 PM
llvm/lib/Target/X86/X86ISelLowering.cpp
1566–1569

Maybe add setOperationPromotedToType(Opc, MVT::v16f16, MVT::v16f32); here too?

yubing updated this revision to Diff 445702.Jul 18 2022, 11:17 PM

address phoebe's comments

yubing marked an inline comment as done.Jul 18 2022, 11:17 PM
pengfei accepted this revision.Jul 18 2022, 11:22 PM

LGTM, thanks for the fix!

llvm/test/CodeGen/X86/avx512-f16c-v16f16-fadd.ll
5

Add nounwind to supress the .cfi*

llvm/test/CodeGen/X86/avx512-skx-v32f16-fadd.ll
5

ditto.

This revision is now accepted and ready to land.Jul 18 2022, 11:22 PM
This revision was landed with ongoing or failed builds.Jul 18 2022, 11:38 PM
This revision was automatically updated to reflect the committed changes.