[all-commits] [llvm/llvm-project] 95f9ed: [X86] combineSetCCMOVMSK - use APInt::getLowBitsSe...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jan 4 09:02:14 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95f9eddbbcffa77685d0fd2e781521acb5d21ae4
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  [X86] combineSetCCMOVMSK - use APInt::getLowBitsSet to create bitmask. NFC.

SelectionDAG::getConstant creates an APInt internally anyway, and getLowBitsSet helps assert for legal bitwidths. Plus it silences static analyzer out-of-bounds shift warnings.

More information about the All-commits mailing list