[all-commits] [llvm/llvm-project] 77b3f8: [X86] combineAndMaskToShift - match constant splat...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jul 11 03:26:11 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77b3f890ccad711184d2a2a9ddcef351051d4dd5
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/cast-vsel.ll

  Log Message:
  [X86] combineAndMaskToShift - match constant splat with X86::isConstantSplat

Using X86::isConstantSplat instead of ISD::isConstantSplatVector allows us to detect constant masks after they've been lowered to constant pool loads.

Addresses regression from D154592

More information about the All-commits mailing list