https://github.com/davemgreen approved this pull request. Im not sure we should have two ways of doing this - I think the bitcast in DAG might be able to handle both of them now. With as we have things this LGTM though. Thanks https://github.com/llvm/llvm-project/pull/168076