[all-commits] [llvm/llvm-project] 41f2a5: [Attributor][NFC] Use a BumpPtrAllocator to alloca...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Apr 1 18:54:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 41f2a57d0bc1c54cefc3145102632fc5e767d953
      https://github.com/llvm/llvm-project/commit/41f2a57d0bc1c54cefc3145102632fc5e767d953
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/Attributor.cpp

  Log Message:
  -----------
  [Attributor][NFC] Use a BumpPtrAllocator to allocate `AbstractAttribute`s

We create a lot of AbstractAttributes and they live as long as
the Attributor does. It seems reasonable to allocate them via a
BumpPtrAllocator owned by the Attributor.

Reviewed By: baziotis

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




More information about the All-commits mailing list