nikic wrote: TBH, the more I look at this code, the more unhappy I become. I submitted a full revert of the GlobalOpt code at https://github.com/llvm/llvm-project/pull/144652. https://github.com/llvm/llvm-project/pull/144641