[all-commits] [llvm/llvm-project] b9dd60: [DAGCombiner] Remove a hasOneUse check in visitAND...

David Sherwood via All-commits all-commits at lists.llvm.org
Fri Nov 8 00:20:53 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9dd60228cbb2a173380a450f0f71ca43e917783
      https://github.com/llvm/llvm-project/commit/b9dd60228cbb2a173380a450f0f71ca43e917783
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/sve-hadd.ll

  Log Message:
  -----------
  [DAGCombiner] Remove a hasOneUse check in visitAND (#115142)

For some reason there was a hasOneUse check on the splat for the
second operand and it's not obvious to me why. The check blocks
optimisations for lowering of nodes like AVGFLOORU and AVGCEILU.

In a follow-on patch I also plan to improve the generated code
for AVGCEILU further by teaching computeKnownBits about
zero-extending masked loads.



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