[PATCH] [x86] eliminate unnecessary shuffling/moves with unary scalar math ops (PR21507)

Sanjay Patel spatel at rotateright.com
Wed May 6 10:25:26 PDT 2015


Patch updated:
Simon and I discussed supporting the cases in sse-scalar-fp-arith.ll and how that IR can occur via generic vector code that relies on compiler builtins. We'll need more patterns to handle those; I don't see a quick fix.

1. Added a TODO comment regarding additional patterns.
2. Fixed extra space in memory folding table entry.
3. Changed test file to specify a triple rather than a cpu.
4. Modified check lines in the test file for generic x86-64 matches.


http://reviews.llvm.org/D9504

Files:
  lib/Target/X86/X86InstrInfo.cpp
  lib/Target/X86/X86InstrSSE.td
  test/CodeGen/X86/sse-scalar-fp-arith-unary.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9504.25064.patch
Type: text/x-patch
Size: 8808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150506/6bc7d902/attachment.bin>


More information about the llvm-commits mailing list