[all-commits] [llvm/llvm-project] 165240: [NFC] Fix compile time regression seen on some ben...

yurai007 via All-commits all-commits at lists.llvm.org
Tue Jul 12 06:02:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 165240fe38b4199adab40e57b61e848cc169a83e
      https://github.com/llvm/llvm-project/commit/165240fe38b4199adab40e57b61e848cc169a83e
  Author: Dawid Jurczak <dawid_jurek at vp.pl>
  Date:   2022-07-12 (Tue, 12 Jul 2022)

  Changed paths:
    M llvm/include/llvm/IR/Metadata.h
    M llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
    M llvm/lib/IR/Metadata.cpp

  Log Message:
  -----------
  [NFC] Fix compile time regression seen on some benchmarks after a630ea3003 commit

The goal of this change is fixing most of compile time slowdown seen after a630ea3003 commit on lencod and sqlite3 benchmarks.
There are 3 improvements included in this patch:

1. In getNumOperands when possible get value directly from SmallNumOps.
2. Inline getLargePtr by moving its definition to header.
3. In TBAAStructTypeNode::getField get all operands once instead taking operands in loop one after one.

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




More information about the All-commits mailing list