arsenm wrote: I do think we need a common scalarization utility. Also, I don't really see the point of having the expand-large-div and expand-large-fp pass being separate. They have identical purpose https://github.com/llvm/llvm-project/pull/86954