Skip to content

Commit

Permalink
MIR: Stop reinitializing target information for every use
Browse files Browse the repository at this point in the history
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.

llvm-svn: 355970
  • Loading branch information
arsenm committed Mar 12, 2019
1 parent 4be269e commit bdfb6cf
Show file tree
Hide file tree
Showing 3 changed files with 378 additions and 327 deletions.
Loading

0 comments on commit bdfb6cf

Please sign in to comment.