[AMDGPU][GISel] Add Identity BUILD_VECTOR Combines
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>
Fri, 30 Sep 2022 13:44:30 +0000 (13:44 +0000)
committerPierre van Houtryve <pierre.vanhoutryve@amd.com>
Fri, 30 Sep 2022 14:07:13 +0000 (14:07 +0000)
commit653beae5a16816a6ef4b699803fd0fc54b8bbbb8
treea59f05607e9ddb6c710cdf6091a0896e0829677b
parent9a67a6b72af1889a37652c9595db6ccbeea0b4b3
[AMDGPU][GISel] Add Identity BUILD_VECTOR Combines

Folds-away BUILD_VECTOR-related noops in the post-legalizer combiner.

Depends on D134433

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D134953
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-ext-mul.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-mul.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.load.1d.d16.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-buildvector-identities.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-trunc-bitcast-buildvector.mir [new file with mode: 0644]