summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_codegen.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-09-10 11:17:49 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-09-10 11:17:49 +0000
commit233edd20a774bbccad77641ebdcb52cd23c9afa5 (patch)
tree7d589d33d6b7ca87e7c63fb36a12570a289aac96 /clang/test/OpenMP/parallel_codegen.cpp
parente19facb9bc36ba9e5b33dcb3241f55ceeb26d29f (diff)
downloadbcm5719-llvm-233edd20a774bbccad77641ebdcb52cd23c9afa5.tar.gz
bcm5719-llvm-233edd20a774bbccad77641ebdcb52cd23c9afa5.zip
[ADT] Rewrite the StringRef::find implementation to be simpler, clearer,
and tremendously less reliant on the optimizer to fix things. The code is always necessarily looking for the entire length of the string when doing the equality tests in this find implementation, but it previously was needlessly re-checking the size each time among other annoyances. By writing this so simply an ddirectly in terms of memcmp, it also is about 8x faster in a debug build, which in turn makes FileCheck about 2x faster in 'ninja check-llvm'. This saves about 8% of the time for FileCheck-heavy parts of the test suite like the x86 backend tests. llvm-svn: 247269
Diffstat (limited to 'clang/test/OpenMP/parallel_codegen.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud