[all-commits] [llvm/llvm-project] 7c2f0d: [X86] combinePredicateReduction - ensure non-i8 sc...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Jan 11 06:22:46 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c2f0dc97036f1b2ed1db68d56019e737d420633
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vector-reduce-and-bool.ll

  Log Message:
  [X86] combinePredicateReduction - ensure non-i8 scalar type is a multiple of 8 bits

For the "all_of(setcc(x,y,eq)) -> PMOVMSKB(PCMPEQB())" fold, we failed to ensure that we could safely bitcast to <X x i8>, which in particular failed with boolean types

Thanks to @lerno for catching this and providing the test case

More information about the All-commits mailing list