[all-commits] [llvm/llvm-project] 93b053: [RDA] getInstFromId: find instructions. NFC.

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Thu Feb 6 06:17:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 93b0536fd2af8a7a0be6cebd0f768a89d64cac30
      https://github.com/llvm/llvm-project/commit/93b0536fd2af8a7a0be6cebd0f768a89d64cac30
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2020-02-06 (Thu, 06 Feb 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/ReachingDefAnalysis.h
    M llvm/lib/CodeGen/ReachingDefAnalysis.cpp

  Log Message:
  -----------
  [RDA] getInstFromId: find instructions. NFC.

To find the instruction in the block for a given ID, first a count and then a
lookup was performed in the map, which is almost the same thing, thus doing
double the work.

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




More information about the All-commits mailing list