davemgreen wrote: Thanks for the report. It looks like there is an unguarded use of TLI that might have been nullptr from certain passes. I've added 83a5c7cb62e404a713a35445b755cf0109650279 that hopefully addresses it. https://github.com/llvm/llvm-project/pull/96287