If it is only the tests that @Endill mentioned, then we can specifically disable these tests. [Flang][OpenMP] Disable/Remove a few long running tests by kiranchandramohan · Pull Request #92739 · llvm/llvm-project · GitHub
AaronBallman:
The logic for determining when to run Flang tests should be updated so that changes to Clang do not run Flang’s tests. I looked through CMake for Flang and don’t see it linking against Clang at all (perhaps I’ve missed something though!), so perhaps Flang tests should not run on Clang changes at all , but at the very least, Flang tests should not run when the only changes in Clang don’t impact Flang to begin with.
At the moment, the only portion of Flang that uses Clang code is the Driver. While the long-term plan is to move this code to llvm/Frontend, this work has been slow.