[InstCombine] FoldShiftByConstant - use m_Specific. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 5 Oct 2020 17:51:12 +0000 (18:51 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 5 Oct 2020 17:56:10 +0000 (18:56 +0100)
commit8fb4645321765124aa89c8e798a989eae38739ce
tree77d4697b18d1e34a91dbbee5f5d402662c1a2d7e
parentc9f5cdd4531e2836f47ceb28b80fd7f418645d96
[InstCombine] FoldShiftByConstant - use m_Specific. NFCI.

Use m_Specific instead of m_Value followed by an equality check - we already do this for the similar folds above, it looks like an oversight in rG2b459fe7e1e where the original pattern match code looked a little different.
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp