topperc wrote: > I thought the point of promoting to s64 is to get better codegen. Why not keep this as legal even if it emits non-optimal code? I'm going to remove s32 instruction patterns. How can I keep it legal? https://github.com/llvm/llvm-project/pull/102533