[PATCH] [X86][SSE] Vector integer/float conversion memory folding

Simon Pilgrim llvm-dev at redking.me.uk
Fri Oct 24 10:44:32 PDT 2014


Hi qcolombet, spatel,

Added a missing memory folding relationship for the CVTDQ2PS instruction (and its AVX variants) - we can safely fold these (but not the CVTDQ2PD versions which have a register/memory size discrepancy in the source operand). I've added a test case demonstrating that stack folding now works.

Also fixed an issue with the VCVTTPD2DQ / VCVTTPS2DQ instructions being incorrectly put in the 2 source operand folding tables instead of the 1 source operand.

Finally, tidied up some entries in the folding tables so that they are under the correct comment section (they were categorised as AVX2 instructions when they're AVX1).

http://reviews.llvm.org/D5981

Files:
  lib/Target/X86/X86InstrInfo.cpp
  test/CodeGen/X86/avx1-stack-reload-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5981.15421.patch
Type: text/x-patch
Size: 5299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141024/3e12ffcc/attachment.bin>


More information about the llvm-commits mailing list