[PATCH] Make foldMemoryOperandImpl() insert instructions instead of caller.

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Tue Apr 21 10:35:59 PDT 2015


Hi dsanders,

This patch changes the semantics of the foldMemoryOperandImpl() method in
order to insert the newly constructed instruction into the machine basic
block. We use this change in order to store zero to memory using the $zero
register on Mips.

http://reviews.llvm.org/D9161

Files:
  lib/CodeGen/TargetInstrInfo.cpp
  lib/Target/Mips/Mips16InstrInfo.cpp
  lib/Target/Mips/Mips16InstrInfo.h
  lib/Target/Mips/MipsInstrInfo.h
  lib/Target/Mips/MipsSEInstrInfo.cpp
  lib/Target/Mips/MipsSEInstrInfo.h
  lib/Target/SystemZ/SystemZInstrInfo.cpp
  lib/Target/X86/X86FastISel.cpp
  lib/Target/X86/X86InstrInfo.cpp
  test/CodeGen/Mips/fold-zero-copy.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9161.24146.patch
Type: text/x-patch
Size: 13026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150421/8853de03/attachment.bin>


More information about the llvm-commits mailing list