[PATCH] D16618: AttributeSetImpl: Summarize existing function attributes in a bitset.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 19:41:34 PST 2016


MatzeB created this revision.
MatzeB added reviewers: void, bkramer, jyknight, hfinkel.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added a subscriber: mcrosier.

The majority of attribute queries checks for the existence of an enum
attribute in the FunctionIndex slot. We only have 48 of those and can
therefore summarize them in an uint64_t bitset which measurably improves
compile time.

Repository:
  rL LLVM

http://reviews.llvm.org/D16618

Files:
  include/llvm/IR/Attributes.h
  include/llvm/IR/Function.h
  lib/IR/AttributeImpl.h
  lib/IR/Attributes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16618.46092.patch
Type: text/x-patch
Size: 4659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160127/eb42b0a2/attachment.bin>


More information about the llvm-commits mailing list