aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-09-10 09:25:59 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-09-10 09:25:59 +0000
commit693683426bbab128b10f313231b1236e1b217145 (patch)
tree06ce8c0066f9a5051bac7652941a0917a6bfba5d /llvm/lib/Support/StringRef.cpp
parentdae2e564d87e0517fc87c41342de59dc2c685e28 (diff)
downloadllvm-693683426bbab128b10f313231b1236e1b217145.zip
llvm-693683426bbab128b10f313231b1236e1b217145.tar.gz
llvm-693683426bbab128b10f313231b1236e1b217145.tar.bz2
[ADT] Micro-optimize and force inlining for string switches.
These are now quite heavily used in unit tests and the host tools, making it worth having them be reasonably fast even in an unoptimized build. This change reduces the total runtime of TripleTest.Normalization by yet another 10% to 15%. It is now under 10 seconds on my machine, and the total check-llvm time has dropped from 38s to around 36s. I experimented with a number of different options, and the code pattern here consistently seemed to lower the cleanest, likely due to the significantly simple CFG and far fewer redundant tests of 'Result'. llvm-svn: 247257
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions