[InstCombine] simplify code for matching shift-logic-shift pattern; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 17 Jan 2023 20:15:48 +0000 (15:15 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 18 Jan 2023 13:13:37 +0000 (08:13 -0500)
commitc2ab7e2abd834d4ef7b0f27709d9f7fce3140eb3
treec88386982f21062d14ee460fdc8deff78cefe6ed
parent0aaeb25525ecbc667a9029a4be0d87085392954a
[InstCombine] simplify code for matching shift-logic-shift pattern; NFC

We can match and capture in one statement. Also, make the
code more closely resemble the description comment by using
the constant name of an operand value.
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp