[GlobalISel] Implement computeKnownBits for G_SEXT_INREG
authorJessica Paquette <jpaquette@apple.com>
Tue, 26 Jan 2021 22:39:39 +0000 (14:39 -0800)
committerJessica Paquette <jpaquette@apple.com>
Tue, 26 Jan 2021 23:01:38 +0000 (15:01 -0800)
commitf36007e8110174ea10294f6fa546f3c64f0e548a
tree14f7994300698ece9396d82050b117ae6e0214a7
parent0554541b44548591373b690030dea28c5434be7c
[GlobalISel] Implement computeKnownBits for G_SEXT_INREG

Just use the existing `Known.sextInReg` implementation.

- Update KnownBitsTest.cpp.
- Update combine-redundant-and.mir for a more concrete example.

Differential Revision: https://reviews.llvm.org/D95484
llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-redundant-and.mir
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp