[all-commits] [llvm/llvm-project] ce1061: [BOLT][NFC] Simplify MCPlusBuilder::getRegSize

Amir Ayupov via All-commits all-commits at lists.llvm.org
Tue Mar 14 17:26:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce1061074dac53aa6aff8553535f004bc55867ad
      https://github.com/llvm/llvm-project/commit/ce1061074dac53aa6aff8553535f004bc55867ad
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M bolt/include/bolt/Core/MCPlusBuilder.h
    M bolt/lib/Core/MCPlusBuilder.cpp

  Log Message:
  -----------
  [BOLT][NFC] Simplify MCPlusBuilder::getRegSize

Pre-calculate the register size table in MCPlusBuilder constructor,
similar to `AliasMap`/`SmallerAliasMap` in `initAliases`.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D145828




More information about the All-commits mailing list