llvm / llvm/llvm-project

Detection of out-of-process JIT support takes non-trivial time on each lit invocation

Open
#178,407 3 comments 0 reactions 0 assignees View on GitHub
clang
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

As reported in #144064, this PR added some non-trivial overhead to lit invocations, making development cycle significantly longer.

It was suggested to compute this once and put in some kind of cache to prevent re-evaluations, maybe some lit cache or even CMake, but 22 seconds I measured is still a long time.

Contributor guide

Open the contributing guide

Research direction

The issue points to lit invocations and CMake, with the regression described in #144064; start by reproducing the reported 22-second cost and tracing the out-of-process JIT support check. Compare the available lit-cache or CMake-cache approaches, and consider the work done when repeated lit invocations no longer reevaluate the check and the performance improvement is measured.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system, compilers, performance, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.