[PATCH] D21689: [mips] Optimize materialization of i64 constants

Simon Dardis via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 08:57:04 PDT 2016


sdardis created this revision.
sdardis added a reviewer: dsanders.
sdardis added a subscriber: llvm-commits.
sdardis set the repository for this revision to rL LLVM.
Herald added a reviewer: vkalintiris.
Herald added subscribers: sdardis, dsanders.

Avoid MipsAnalyzeImmediate usage if the constant fits in an 32-bit
integer. This allows us to generate the same instructions for the
materialization of the same constants regardless the width of their
type.

Patch by: Vasileios Kalintiris

Contributions by: Simon Dardis

Repository:
  rL LLVM

http://reviews.llvm.org/D21689

Files:
  lib/Target/Mips/MicroMips64r6InstrInfo.td
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/Mips64InstrInfo.td
  lib/Target/Mips/MipsInstrInfo.td
  lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  test/CodeGen/Mips/cmov.ll
  test/CodeGen/Mips/fcmp.ll
  test/CodeGen/Mips/llvm-ir/add.ll
  test/CodeGen/Mips/llvm-ir/and.ll
  test/CodeGen/Mips/llvm-ir/lshr.ll
  test/CodeGen/Mips/llvm-ir/ret.ll
  test/CodeGen/Mips/llvm-ir/select-int.ll
  test/CodeGen/Mips/llvm-ir/shl.ll
  test/CodeGen/Mips/mips64imm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21689.61802.patch
Type: text/x-patch
Size: 24070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160624/5e115c25/attachment.bin>


More information about the llvm-commits mailing list