[PATCH] D90658: [X86] Improve lowering of fptoui
Layton Kifer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 17:42:10 PST 2020
laytonio created this revision.
laytonio added reviewers: craig.topper, RKSimon.
Herald added subscribers: llvm-commits, pengfei, hiraditya.
Herald added a project: LLVM.
laytonio requested review of this revision.
Invert the select condition when masking in the sign bit of a fptoui operation. Also, rather than lowering the sign mask to select/xor and expecting the select to get cleaned up later, directly lower to shift/xor.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90658
Files:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/fp-cvt.ll
llvm/test/CodeGen/X86/fp-intrinsics-flags.ll
llvm/test/CodeGen/X86/fp-intrinsics.ll
llvm/test/CodeGen/X86/fp-strict-scalar-fptoint.ll
llvm/test/CodeGen/X86/fp80-strict-scalar.ll
llvm/test/CodeGen/X86/scalar-fp-to-i64.ll
llvm/test/CodeGen/X86/vec-strict-fptoint-128.ll
llvm/test/CodeGen/X86/vec-strict-fptoint-256.ll
llvm/test/CodeGen/X86/vec-strict-fptoint-512.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90658.302438.patch
Type: text/x-patch
Size: 116474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201103/b32a4223/attachment-0001.bin>
More information about the llvm-commits
mailing list