[PATCH] D36061: [MSP430] Implement multiplication by a constant

Vadzim Dambrouski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 09:02:51 PDT 2017


pftbest created this revision.
Herald added subscribers: arichardson, sdardis.

The algorithm is borrowed from the Mips backend.

This also makes jumptables more efficient, they no longer require
a libcall.


https://reviews.llvm.org/D36061

Files:
  lib/Target/MSP430/MSP430ISelLowering.cpp
  lib/Target/MSP430/MSP430ISelLowering.h
  test/CodeGen/MSP430/jumptable.ll
  test/CodeGen/MSP430/mul-by-constant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36061.108832.patch
Type: text/x-patch
Size: 6084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170730/fb28f8d5/attachment.bin>


More information about the llvm-commits mailing list