[GISel] Correct the known bits of G_ANYEXT
authorJustin Bogner <mail@justinbogner.com>
Fri, 21 Aug 2020 00:03:18 +0000 (17:03 -0700)
committerJustin Bogner <mail@justinbogner.com>
Fri, 21 Aug 2020 00:17:04 +0000 (17:17 -0700)
commit1283dca0076b3441fa0ecae86d9f2d2afd3afa6f
tree43a104dfa6cd4a60e34c190b94236faa35d43f30
parent70923983e54253723600eb2f4cdfb0fbb347a364
[GISel] Correct the known bits of G_ANYEXT

Known bits for G_ANYEXT was incorrectly using KnownBits::zext, causing
us to treat the high bits as zero even though they're (by definition)
unknown.

Differential Revision: https://reviews.llvm.org/D86323
llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp