[GISel] Add redundant bitcast folding combine
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>
Tue, 4 Oct 2022 11:06:15 +0000 (11:06 +0000)
committerPierre van Houtryve <pierre.vanhoutryve@amd.com>
Tue, 11 Oct 2022 15:03:08 +0000 (15:03 +0000)
commit4d815bfae0ea556629756aea7ad8d1520131f9ff
treee90f9644e9403e13d32552ac012284ccf4ec157c
parentd7d586e5a7d71082200231a7cd407cae50924f9c
[GISel] Add redundant bitcast folding combine

Simply folds away bitcasts that cancel each other.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D135146
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-redundant-bitcast.mir [new file with mode: 0644]