[InstCombine] Remove one-use check if other logic operand is constant (#77973)
commit96adf69ba93965956d1ee507d9f75a453d99b666
authorAtariDreams <83477269+AtariDreams@users.noreply.github.com>
Tue, 23 Jan 2024 11:10:59 +0000 (23 06:10 -0500)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 11:10:59 +0000 (23 12:10 +0100)
tree0d6d7f6cb3f02f5c390a9095eba8fe68c87922a9
parent74cb09ff90bff4b91f6c3527fd2715d5d4e77aea
[InstCombine] Remove one-use check if other logic operand is constant (#77973)

By using `match(W, m_ImmConstant())`, we do not need to worry about
one-time use anymore.
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/test/Transforms/InstCombine/shift-logic.ll