diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-03 05:40:04 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-03 05:40:04 +0000 |
commit | f37712f48642bcca04c77083c0579e7fe8d4d916 (patch) | |
tree | 55346161df1fd9b24e9fa5d51537037b8e425cfc /lib/MC/ELFObjectWriter.cpp | |
parent | a97ff8a027259b1b9e4dbdb5b6f01cc2195a6948 (diff) |
Represent sentinel slot indexes with a null pointer.
This is much faster than using a pointer to a ManagedStatic object accessed with
a function call. The greedy register allocator is 5% faster overall just from
the SlotIndex default constructor savings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions