RKSimon wrote: VectorCombine usually selects the version with the lowest instruction count, but its not as consistent as it should be - and we've hit a number of infinite loop issues due to it as well. https://github.com/llvm/llvm-project/pull/209037