[all-commits] [llvm/llvm-project] be8f21: [X86] Don't call LowerUINT_TO_FP_i32 for i32->f80 ...
topperc via All-commits
all-commits at lists.llvm.org
Wed Jan 15 00:43:30 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: be8f217b180e134d568ff491b045d05c137b6234
https://github.com/llvm/llvm-project/commit/be8f217b180e134d568ff491b045d05c137b6234
Author: Craig Topper <craig.topper at gmail.com>
Date: 2020-01-15 (Wed, 15 Jan 2020)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/scalar-int-to-fp.ll
Log Message:
-----------
[X86] Don't call LowerUINT_TO_FP_i32 for i32->f80 on 32-bit targets with sse2.
We were performing an emulated i32->f64 in the SSE registers, then
storing that value to memory and doing a extload into the X87
domain.
After this patch we'll now just store the i32 to memory along
with an i32 0. Then do a 64-bit FILD to f80 completely in the X87
unit. This matches what we do without SSE.
More information about the All-commits
mailing list