nikic wrote: This introduces a layering violation. GenericLoopInfo in Support is not allowed to depend on IR. That's the point of the GenericXYZ implementations, they are IR-agnostic. https://github.com/llvm/llvm-project/pull/69920