projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b84ea7a
)
Revert "[perf-training] Check extension in findFilesWithExtension"
author
Amir Aupov
<amir.aupov@gmail.com>
Tue, 10 Jan 2023 22:21:39 +0000
(14:21 -0800)
committer
Amir Aupov
<amir.aupov@gmail.com>
Tue, 10 Jan 2023 22:22:36 +0000
(14:22 -0800)
This reverts commit
1fbbf92e4fda3c7a3be1c02e1f7240135557846d
.
clang/utils/perf-training/perf-helper.py
patch
|
blob
|
history
diff --git
a/clang/utils/perf-training/perf-helper.py
b/clang/utils/perf-training/perf-helper.py
index
d68ab3c
..
c6a815e
100644
(file)
--- a/
clang/utils/perf-training/perf-helper.py
+++ b/
clang/utils/perf-training/perf-helper.py
@@
-23,7
+23,7
@@
def findFilesWithExtension(path, extension):
filenames = []
for root, dirs, files in os.walk(path):
for filename in files:
- if
os.path.splitext(filename)[1] == extension
:
+ if
filename.endswith(extension)
:
filenames.append(os.path.join(root, filename))
return filenames