[opt] Inline a trivial lookup function into the header.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 27 Jun 2015 03:40:10 +0000 (03:40 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 27 Jun 2015 03:40:10 +0000 (03:40 +0000)
commit52eb35576572614ebd37c4904255e7fa3fc7d01b
tree8ab99f7bb42363928e011e56ed861ef08c96a0d1
parent6075fa12734fa95c9fb3b09419d57fbe0f5ba5b2
[opt] Inline a trivial lookup function into the header.

This function is actually *very* hot. It is hard to see currently
because the call graph is very recursive, but I'm working to remove that
and when I do this function becomes significantly higher on the profile
(up to 5%!) and so worth avoiding the call overhead.

No specific perf gain I can measure yet (below the noise), but likely to
have more impact as we stop cluttering the call graph.

Differential Revision: http://reviews.llvm.org/D10788

llvm-svn: 240873
lld/COFF/InputFiles.cpp
lld/COFF/InputFiles.h