[PATCH] D40786: [mips] Add partial support for R6 in the long branch pass

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 07:18:53 PST 2017


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

MIPSR6 introduced several new jump instructions and deprecated
the use of the 'j' instruction. For microMIPS32R6, 'j' was removed
entirely and it only has non delay slot jumps.

This patch adds support for MIPSR6 by using some https://reviews.llvm.org/source/compiler-rt/ instructions--
'bc' instead of 'j', 'jic $reg, 0' instead of 'jalr $zero, $reg'--
and modifies the sequences not to use delay slots for https://reviews.llvm.org/source/compiler-rt/.


Repository:
  rL LLVM

https://reviews.llvm.org/D40786

Files:
  lib/Target/Mips/MipsLongBranch.cpp
  test/CodeGen/Mips/longbranch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40786.125339.patch
Type: text/x-patch
Size: 28766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171204/405f120d/attachment.bin>


More information about the llvm-commits mailing list