[all-commits] [llvm/llvm-project] f40925: [X86] Improve lowering of fptoui
Craig Topper via All-commits
all-commits at lists.llvm.org
Sat Nov 7 23:50:45 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f40925aa8b3d200b4616eb0b8a772a1812800b21
https://github.com/llvm/llvm-project/commit/f40925aa8b3d200b4616eb0b8a772a1812800b21
Author: Craig Topper <craig.topper at sifive.com>
Date: 2020-11-07 (Sat, 07 Nov 2020)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/fp-cvt.ll
M llvm/test/CodeGen/X86/fp-intrinsics-flags.ll
M llvm/test/CodeGen/X86/fp-intrinsics.ll
M llvm/test/CodeGen/X86/fp-strict-scalar-fptoint.ll
M llvm/test/CodeGen/X86/fp80-strict-scalar.ll
M llvm/test/CodeGen/X86/scalar-fp-to-i64.ll
M llvm/test/CodeGen/X86/vec-strict-fptoint-128.ll
M llvm/test/CodeGen/X86/vec-strict-fptoint-256.ll
M llvm/test/CodeGen/X86/vec-strict-fptoint-512.ll
Log Message:
-----------
[X86] Improve lowering of fptoui
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.
Patch by Layton Kifer!
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D90658
More information about the All-commits
mailing list