[PATCH] D143872: [X86][FP16] Combine two steps conversions into direct conversion

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 12 18:58:59 PST 2023


pengfei created this revision.
pengfei added reviewers: LuoYuanke, RKSimon, craig.topper, FreddyYe.
Herald added a subscriber: hiraditya.
Herald added a project: All.
pengfei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When both v8i64 and v4f16 are not legal in a v8i64->v8f16 conversion, legalizer will breaks it into v8i64->v4i64->v4f32->v8f32->v8f16.

Given we support v4i64->v8f16, we can combine them with a shuffle instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143872

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/avx512fp16-cvt.ll
  llvm/test/CodeGen/X86/vec-strict-inttofp-256-fp16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143872.496825.patch
Type: text/x-patch
Size: 5901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230213/113f0fc8/attachment.bin>


More information about the llvm-commits mailing list