add and use isBitwiseLogicOp() helper function; NFCI

llvm-svn: 287712
4 files changed