davemgreen wrote: Oh I hadn't realized this already existed, both for pre and post-ra machine licm. @yxsamliu would those existing options already handle your needs? https://github.com/llvm/llvm-project/pull/67589