AtariDreams wrote: Given how this seems to increase the number of generated instructions, I think this should be done in cases where if OverflowConst.isNonPositive() holds false, instead of doing it to all numbers. https://github.com/llvm/llvm-project/pull/81690