aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/ArrayRefTest.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2023-01-09 18:07:26 -0800
committerAmir Ayupov <aaupov@fb.com>2023-01-10 11:46:51 -0800
commit1fbbf92e4fda3c7a3be1c02e1f7240135557846d (patch)
tree6e6fcc17e9086bf9a53ed49d7d13e883b6e83224 /llvm/unittests/ADT/ArrayRefTest.cpp
parent6454391b3111993f277fb2570d28f59699b7dae2 (diff)
downloadllvm-1fbbf92e4fda3c7a3be1c02e1f7240135557846d.zip
llvm-1fbbf92e4fda3c7a3be1c02e1f7240135557846d.tar.gz
llvm-1fbbf92e4fda3c7a3be1c02e1f7240135557846d.tar.bz2
[perf-training] Check extension in findFilesWithExtension
`findFilesWithExtension` helper checks for `endswith(extension)` instead of exactly matching the file extension. This causes it to match unrelated files, for example, `.profdata` files while matching `.fdata` files: http://157.230.108.44:8011/#/builders/56/builds/247 ``` Merging data from /worker/worker/bolt-x86_64-ubuntu-clang-bolt-gcc/build/tools/clang/prof.fdata.1124569.fdata... Merging data from /worker/worker/bolt-x86_64-ubuntu-clang-bolt-gcc/build/tools/clang/test/Frontend/Output/optimization-remark-with-hotness-new-pm.c.tmp.profdata... ``` Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D141342
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions