[PATCH] D131828: [X86][FP16] Promote FP16->[U]INT to FP16->FP32->[U]INT
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 22:52:02 PDT 2022
pengfei created this revision.
pengfei added reviewers: LuoYuanke, craig.topper, RKSimon, skan.
Herald added subscribers: armkevincheng, eric-k256, StephenFan, hiraditya.
Herald added a reviewer: sjarus.
Herald added a project: All.
pengfei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This is to avoid f16->i64 on being lowered to `__fixhfdi/__fixunshfdi` on 32-bits since neither libgcc nor compiler-rt provide them. https://godbolt.org/z/cjWEsea5v
It also helps to improve the performance by promoting the vector type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131828
Files:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/fpclamptosat_vec.ll
llvm/test/CodeGen/X86/half.ll
llvm/test/CodeGen/X86/vector-half-conversions.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131828.452385.patch
Type: text/x-patch
Size: 38673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220813/ce35d149/attachment.bin>
More information about the llvm-commits
mailing list