[PATCH] D78326: [PredicateInfo] Factor out temporary state (NFC)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 13:56:24 PDT 2020


nikic created this revision.
nikic added a reviewer: fhahn.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When running IPSCCP on a module with many small functions, memory usage is currently dominated by PredicateInfo, which is a huge structure (partially due to some unfortunate nested SmallVector use). However, most of it is actually only temporary analysis state, and does not need to be retained after initial construction.

This patch factors the temporary state out into a separate structure that is only live during the analysis.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78326

Files:
  include/llvm/Transforms/Utils/PredicateInfo.h
  lib/Transforms/Utils/PredicateInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78326.258157.patch
Type: text/x-patch
Size: 11190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/e4247e3e/attachment.bin>


More information about the llvm-commits mailing list