[InstCombine] Remove dead code from foldICmpShlOne. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 16 Jan 2023 02:55:15 +0000 (18:55 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 16 Jan 2023 03:10:17 +0000 (19:10 -0800)
commit8e317e693a6c131391ee8ebc4321e907329b20ba
tree7979e39347ce8945434731a67ee7b131fe6ee50c
parentf89327e28bc17a1d80fd5523520e62d8dd53c1cb
[InstCombine] Remove dead code from foldICmpShlOne. NFC

This code handles (icmp eq/ne (1 << Y), C) if C is a power of 2.

This case is also handled by the more general foldICmpShlConstConst
which is called before we reach foldICmpShlOne.
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp