[llvm-exegesis] if lit can't find llvm-exegesis, fail gracefully
authorTies Stuij <ties.stuij@arm.com>
Mon, 27 Mar 2023 15:31:50 +0000 (16:31 +0100)
committerTies Stuij <ties.stuij@arm.com>
Mon, 27 Mar 2023 15:33:18 +0000 (16:33 +0100)
commit88383f18f3a693f9ea02733c680a32961e038b1e
tree8c28cbaacd9fa6bbbac0b1500c57714b872046b2
parent5f34259609f604bfcd5cbf324a32d265e6a5d347
[llvm-exegesis] if lit can't find llvm-exegesis, fail gracefully

currently in can_use_perfcounters() in
llvm/test/tools/llvm-exegesis/lit.local.cfg, we check if we can execute
llvm-exegesis. But we don't check if we did actually find llvm-exegesis. If we
didn't, lit.util.which() will return None, and we try to execute that.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D146964
llvm/test/tools/llvm-exegesis/lit.local.cfg