[PATCH] D129468: [NFC] Fix compile time regression seen on some benchmarks after a630ea3003 commit

Dawid Jurczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 00:14:03 PDT 2022


yurai007 created this revision.
yurai007 added reviewers: nikic, wolfgangp, serge-sans-paille, dexonsmith.
Herald added subscribers: jeroen.dobbelaere, kosarev, hiraditya.
Herald added a project: All.
yurai007 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The goal of this change is fixing most of compile time slowdown seen after a630ea3003 <https://reviews.llvm.org/rGa630ea3003de91152f65464ef75f592c600d5cdd> commit on lencod and sqlite3 benchmarks.
There are 3 simple 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129468

Files:
  llvm/include/llvm/IR/Metadata.h
  llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
  llvm/lib/IR/Metadata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129468.443569.patch
Type: text/x-patch
Size: 5037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220711/7b21555e/attachment.bin>


More information about the llvm-commits mailing list