[PATCH] D134019: [MachineCycle][NFC]add a cache from block and top level cycle mapping

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 00:23:00 PDT 2022


shchenz created this revision.
shchenz added reviewers: avogelsgesang, sameerds, fhahn, nikic.
Herald added a project: All.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This solves the big compile time regression in https://github.com/llvm/llvm-project/issues/57664

The hot function is `getTopLevelParentCycle`.

Too many redundant computations to get a top level cycle for a block.

This patch improves compile time about X15 on PPC64 Linux.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134019

Files:
  llvm/include/llvm/ADT/GenericCycleImpl.h
  llvm/include/llvm/ADT/GenericCycleInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134019.460658.patch
Type: text/x-patch
Size: 3567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220916/d046afa2/attachment.bin>


More information about the llvm-commits mailing list