https://github.com/arsenm commented: LGTM but can you add some negative tests for the case where this was trigger for canonicalizing instructions? I assume those required looking through a bitcast? https://github.com/llvm/llvm-project/pull/152119