OSDN Git Service

[x86] replace integer 'or' ops with packed SSE FP 'or' ops when operating on FP scalars
authorSanjay Patel <spatel@rotateright.com>
Wed, 23 Sep 2015 18:19:07 +0000 (18:19 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 23 Sep 2015 18:19:07 +0000 (18:19 +0000)
commitdfa2ab03d41469f78e525968932476194719dfb0
treeaa18d0c92f4ec66888bb427ea97acfbda115756e
parent0769c6afd6f237c2dffbac02f194134201356e3a
[x86] replace integer 'or' ops with packed SSE FP 'or' ops when operating on FP scalars

Turn this:

movd %xmm0, %eax
movd %xmm1, %ecx
orl %eax, %ecx
movd %ecx, %xmm0

into this:

orps %xmm1, %xmm0

This is related to, but does not solve:
https://llvm.org/bugs/show_bug.cgi?id=22428

This is an extension of:
http://reviews.llvm.org/rL248395

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248409 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/fp-logic.ll