[all-commits] [llvm/llvm-project] 33fc32: [SelectionDAG] Simplify vselect true, T, F -> T (#...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Aug 5 19:49:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33fc322696f438901d4b9a8717317bccfbd37040
      https://github.com/llvm/llvm-project/commit/33fc322696f438901d4b9a8717317bccfbd37040
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/AArch64/srem-seteq-vec-splat.ll
    A llvm/test/CodeGen/RISCV/rvv/vp-select.ll
    M llvm/test/CodeGen/X86/combine-srem.ll
    M llvm/test/CodeGen/X86/srem-seteq-vec-splat.ll

  Log Message:
  -----------
  [SelectionDAG] Simplify vselect true, T, F -> T (#100992)

This addresses a TODO where we can fold a vselect to it's true operand
if the boolean is known to be all trues, by factoring out the logic from
extractBooleanFlip which checks TLI.getBooleanContents.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list