alexey-bataev wrote: Some non-vectorizable math calls are vectorized in the test, default cost missing spill cost. Would be good to have a function call to check if the node should be scalarized (something like https://reviews.llvm.org/D154738) https://github.com/llvm/llvm-project/pull/124984