VigneshwarJ wrote: @nikic pinging for review, as stated above, incorporated your idea of having a heuristic. I believe this would be a good fix for the trivial cases performance regression. https://github.com/llvm/llvm-project/pull/170204