aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-03-17 17:16:39 +0000
committerReid Kleckner <rnk@google.com>2017-03-17 17:16:39 +0000
commit56d028d9744b045974fd2a52c296318018c30f9f (patch)
treeb45cf8b96299b4b23ec0ceaa24737fa2a9d99399 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentee2dd785f617101cc7f02e7fb192761154867327 (diff)
downloadllvm-56d028d9744b045974fd2a52c296318018c30f9f.zip
llvm-56d028d9744b045974fd2a52c296318018c30f9f.tar.gz
llvm-56d028d9744b045974fd2a52c296318018c30f9f.tar.bz2
Store Arguments in a flat array instead of an iplist
This saves two pointers from Argument and eliminates some extra allocations. Arguments cannot be inserted or removed from a Function because that would require changing its Type, which LLVM does not allow. Instead, passes that change prototypes, like DeadArgElim, create a new Function and copy over argument names and attributes. The primary benefit of iplist is O(1) random insertion and removal. We just don't need that for arguments, so don't use it. Reviewed By: chandlerc Subscribers: dlj, inglorion, llvm-commits Differential Revision: https://reviews.llvm.org/D31058 llvm-svn: 298105
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions