Having a NoOpLoopNestPass can ensure that only outermost loop is invoked for a LoopNestPass with a lit test.
There are some existing passes that are implemented as LoopNestPass, but they are still using LOOP_PASS macro.
It would be easier to identify LoopNestPasses with a LOOPNEST_PASS macro.
clang-format: please reformat the code
- UseMemorySSA)) { - Pipeline = {{"function", {{UseMemorySSA ? "loop-mssa" : "loop", - std::move(*Pipeline)}}}}; + UseMemorySSA)) { + Pipeline = { + {"function", + {{UseMemorySSA ? "loop-mssa" : "loop", std::move(*Pipeline)}}}};