]> granicus.if.org Git - llvm/commit
[IR] Inline some Function accessors
authorReid Kleckner <rnk@google.com>
Thu, 16 Mar 2017 16:57:31 +0000 (16:57 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 16 Mar 2017 16:57:31 +0000 (16:57 +0000)
commit800f10438aa67eb9d040db2a101106e35d92b475
tree410a3e091491eb962ae4d956acc76a6dad9dfa1b
parent6ce086bb362e117c0675381ee3498448ce1c3b6b
[IR] Inline some Function accessors

I checked that all of these out-of-line methods previously compiled to
simple loads and bittests, so they are pretty good candidates for
inlining. In particular, arg_size() and arg_empty() are popular and are
just two loads, so they seem worth inlining.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297963 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
include/llvm/IR/GlobalObject.h
lib/IR/Function.cpp
lib/IR/Globals.cpp