[PATCH] D49533: [mips] Move out the WrapperPat declaration from the NotInMicroMips predicate

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 00:41:03 PDT 2018


atanasyan created this revision.
atanasyan added reviewers: abeserminji, smaksimovic.
Herald added subscribers: jrtc27, arichardson, sdardis.

This is a follow-up to the https://reviews.llvm.org/rL335185. Those commit adds some WrapperPat patterns for microMIPS target. But declaration of the WrapperPat class is under the NotInMicroMips predicate and microMIPS patterns cannot be selected because predicate (Subtarget->inMicroMipsMode()) && (!Subtarget->inMicroMipsMode()) is always false.

This change move out the WrapperPat class declaration from the NotInMicroMips predicate and enables microMIPS WrapperPat patterns.


Repository:
  rL LLVM

https://reviews.llvm.org/D49533

Files:
  lib/Target/Mips/MipsInstrInfo.td
  test/CodeGen/Mips/tglobaladdr-wrapper.ll
  test/CodeGen/Mips/tls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49533.156216.patch
Type: text/x-patch
Size: 5450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180719/ddfb14be/attachment.bin>


More information about the llvm-commits mailing list