Represent sentinel slot indexes with a null pointer.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 3 Mar 2011 05:40:04 +0000 (05:40 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 3 Mar 2011 05:40:04 +0000 (05:40 +0000)
commitf37712f48642bcca04c77083c0579e7fe8d4d916
tree55346161df1fd9b24e9fa5d51537037b8e425cfc
parenta97ff8a027259b1b9e4dbdb5b6f01cc2195a6948
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
include/llvm/CodeGen/SlotIndexes.h
lib/CodeGen/SlotIndexes.cpp