Same implementation as G_SEXT_INREG.
Add a testcase to combine-sext-inreg for a concrete example, and a testcase to KnownBitsTest.
Paths
| Differential D96897
[GlobalISel] Implement computeNumSignBits for G_ASSERT_SEXT ClosedPublic Authored by paquette on Feb 17 2021, 1:23 PM.
Details Summary Same implementation as G_SEXT_INREG. Add a testcase to combine-sext-inreg for a concrete example, and a testcase to KnownBitsTest.
Diff Detail Event TimelineHerald added subscribers: kerbowa, hiraditya, rovka and 2 others. · View Herald TranscriptFeb 17 2021, 1:23 PM This revision is now accepted and ready to land.Feb 17 2021, 1:40 PM Closed by commit rG26fb036559d0: [GlobalISel] Implement computeNumSignBits for G_ASSERT_SEXT (authored by paquette). · Explain WhyFeb 17 2021, 1:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 324413 llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-sext-inreg.mir
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
|
Maybe also test the other edge case of 1