[PATCH] [X86] Memory folding for commutative instructions.

Simon Pilgrim llvm-dev at redking.me.uk
Fri Oct 10 06:57:00 PDT 2014


Hi Quentin,

I've added error handling code for commuteInstruction returning nullptr or a new MachineInstr*, both before and after the commuted folding attempt. This appears to be enough and we don't need to alter either the commute or folding call arguments to support it - we can keep to in-place instruction commutes only.

Simon.

http://reviews.llvm.org/D5701

Files:
  lib/Target/X86/X86FastISel.cpp
  lib/Target/X86/X86InstrInfo.cpp
  lib/Target/X86/X86InstrInfo.h
  test/CodeGen/X86/avx1-stack-reload-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5701.14722.patch
Type: text/x-patch
Size: 7779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141010/89a7422d/attachment.bin>


More information about the llvm-commits mailing list