[PATCH] D59222: MIR: Stop reinitializing target information for every use

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 10:27:01 PDT 2019


arsenm created this revision.
arsenm added reviewers: arphaman, MatzeB, t.p.northover, thegameg, plotfi.
Herald added a subscriber: wdng.

Every time a physical register reference was parsed, this would
initialize a string map for every register in in target, and discard
it for the next. The same applies for the other fields initialized
from target information.

      

Follow along with how the function state is tracked, and add a new
tracking class for target information.

      

The string->register class/register bank for some reason were kept
separately, so track them in the same place.


https://reviews.llvm.org/D59222

Files:
  lib/CodeGen/MIRParser/MIParser.cpp
  lib/CodeGen/MIRParser/MIParser.h
  lib/CodeGen/MIRParser/MIRParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59222.190121.patch
Type: text/x-patch
Size: 33719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190311/2c3f1e5a/attachment.bin>


More information about the llvm-commits mailing list