GrumpyPigSkin wrote: @RKSimon I have made the changes to make the optimisation only when optimising for size :) The ISDX86 nodes need to stay I think since the ISD versions don't produce an output for flags. https://github.com/llvm/llvm-project/pull/169069