Debugging AArch64 instruction legalization and custom lowering is really an unpleasant experience because it shows nodes that appear out of thin air. This happens because newly created nodes in previous steps are not dumped, but are then picked up for legalization and printed.
This adds debug messages for several custom lowering functions; this is does not fix all custom lowerings, but is hopefully a good start.