[PATCH] D62653: [Mips][DSP] Fix physregs incorrectly marked as dead.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 11:37:14 PDT 2019


efriedma added a comment.

> So we would need to mark every instruction that uses any part of DSPControl as having an post-isel hook and there are more than 100 instructions

It should be possible to do this without too much boilerplate using a TSFlags bit; you can mark all the instructions that need this particular rewrite, and check the bit in processFunctionAfterISel, instead of explicitly listing all the opcodes.  The Mips backend uses TSFlags for other instruction properties already; see, for example, IsCTI.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62653/new/

https://reviews.llvm.org/D62653





More information about the llvm-commits mailing list