AZero13 wrote: For what it is worth, I wonder if the assembler can take care of many of the situations for us where we can materialize a constant via adds and subs + zero reg or we have to do that ourselves. https://github.com/llvm/llvm-project/pull/150394