OSDN Git Service

Change typeIncompatible to return an AttrBuilder instead of new-ing an AttributeSet.
authorPete Cooper <peter_cooper@apple.com>
Wed, 6 May 2015 23:19:56 +0000 (23:19 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 6 May 2015 23:19:56 +0000 (23:19 +0000)
commita7574638e7da2645d4e06c62bd7c190be131efca
treee3864c22afb353d581a3671de88b90fdd2f87241
parent4716d634a2f003067ada37c4212ccf39d57d45fd
Change typeIncompatible to return an AttrBuilder instead of new-ing an AttributeSet.

This makes use of the new API which can remove attributes from a set given a builder.

This is much faster than creating a temporary set and reduces llc time by about 0.3% which was all spent creating temporary attributes sets on the context.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236668 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Attributes.h
lib/IR/Attributes.cpp
lib/IR/Verifier.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp