Skip to content

Commit 758d4bf

Browse files
committed
[opt-viewer] Account for optimization records YAML generated by LTO
1 parent f76d9da commit 758d4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/opt-viewer/optrecord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,6 @@ def find_opt_files(*dirs_or_files):
361361
d for d in subdirs if not os.path.ismount(os.path.join(dir, d))
362362
]
363363
for file in files:
364-
if fnmatch.fnmatch(file, "*.opt.yaml*"):
364+
if fnmatch.fnmatch(file, "*.opt.yaml*") or fnmatch.fnmatch(file, "*.opt.ld.yaml*"):
365365
all.append(os.path.join(dir, file))
366366
return all

0 commit comments

Comments
 (0)