[PATCH] [X86][SSE] Float comparisons can sometimes be safely commuted
Simon Pilgrim
llvm-dev at redking.me.uk
Mon Jan 26 07:31:58 PST 2015
Hi qcolombet, spatel, mkuper,
For ordered, unordered, equal and not-equal tests, packed float and double comparison instructions can be safely commuted without affecting the results. This patch checks the comparison mode of the (v)cmpps + (v)cmppd instructions and commutes the result if it can.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7178
Files:
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/commute-fcmp.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7178.18758.patch
Type: text/x-patch
Size: 8648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150126/82afb875/attachment.bin>
More information about the llvm-commits
mailing list