[all-commits] [llvm/llvm-project] 770948: [X86] Lower vector umax(x, 1) -> sub(x, cmpeq(x, 0))

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Mar 7 07:39:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7709480219f97df6729f5a7af68630774852f874
      https://github.com/llvm/llvm-project/commit/7709480219f97df6729f5a7af68630774852f874
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/umax.ll

  Log Message:
  -----------
  [X86] Lower vector umax(x,1) -> sub(x,cmpeq(x,0))

With suitable BooleanContent handling we could move this to TargetLowering::expandIntMINMAX, but this is good enough for X86

Fixes #61225




More information about the All-commits mailing list