[GlobalISel] Allow vectors in redundant or + add combines
authorJessica Paquette <jpaquette@apple.com>
Tue, 11 Oct 2022 21:49:41 +0000 (14:49 -0700)
committerJessica Paquette <jpaquette@apple.com>
Tue, 11 Oct 2022 22:31:09 +0000 (15:31 -0700)
commit0f1a51e17353f837ed693b9798d1dbb0b8fd5fa0
tree4ef58b44b66f5c8d67f9b4bebafd0283fea10b5e
parent0ecf7965929c4477c8b9821c68e0ad66b012d8fe
[GlobalISel] Allow vectors in redundant or + add combines

We support KnownBits for vectors, so we can enable these.

https://godbolt.org/z/r9a9W4Gj1

Differential Revision: https://reviews.llvm.org/D135719
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-or-redundant.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-redundant-and.mir