[NFC] refactor code
authorLuo, Yuanke <yuanke.luo@intel.com>
Fri, 26 May 2023 13:04:04 +0000 (21:04 +0800)
committerLuo, Yuanke <yuanke.luo@intel.com>
Fri, 26 May 2023 13:06:23 +0000 (21:06 +0800)
commite821db39d2255455f0c6fbddbe4529fa5dbec852
treeb0fb78446ec0364a613dd30cfc3ef851c4978049
parente99a79fbf57ea81ae25aa9efbf6e29441d969c0a
[NFC] refactor code

Split the NFC patch from D151535. Refactor canCombineAsMaskOperation to
take 1 input operand.
llvm/lib/Target/X86/X86ISelLowering.cpp