LLVM has "unit" tests
I mean they run single pass with some small llvm ir input and check if the output IR is fine