[PATCH] D45760: Emit a left-shift instead of a power-of-two multiply for jump-tables

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 20 03:12:57 PDT 2018


arichardson updated this revision to Diff 143275.
arichardson marked 3 inline comments as done.
arichardson retitled this revision from "[MIPS] Emit a left-shift instead of a power-of-two multiply for jump-tables" to "Emit a left-shift instead of a power-of-two multiply for jump-tables".
arichardson edited the summary of this revision.
arichardson added reviewers: pftbest, asl.
arichardson added a comment.

Perform the optimization in LegalizeDAG instead. Turns out this also fixes MSP430


Repository:
  rL LLVM

https://reviews.llvm.org/D45760

Files:
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  test/CodeGen/MSP430/jumptable.ll
  test/CodeGen/Mips/2010-07-20-Switch.ll
  test/CodeGen/Mips/indirect-jump-hazard/jumptables.ll
  test/CodeGen/Mips/jump-table-mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45760.143275.patch
Type: text/x-patch
Size: 5880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180420/ac8d368f/attachment.bin>


More information about the llvm-commits mailing list