[all-commits] [llvm/llvm-project] ee27e5: [TargetLowering][ARM][AArch64] Remove usage of NoS...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jun 1 14:21:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee27e5df9e67bffbc629ea8638524ee7725d12ab
      https://github.com/llvm/llvm-project/commit/ee27e5df9e67bffbc629ea8638524ee7725d12ab
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/AArch64/arm64-vhadd.ll
    M llvm/test/CodeGen/AArch64/sve-hadd.ll
    M llvm/test/CodeGen/Thumb2/mve-vhadd.ll

  Log Message:
  -----------
  [TargetLowering][ARM][AArch64] Remove usage of NoSignedWrap/NoUnsignedWrap from AVGFLOOR/CEIL transform.

Use computeOverflowForUnsignedAdd and computeOverflowForSignedAdd
instead. Unfortunately, this recomputes some known bits and sign bits
we may have already computed, but was the easiest fix without a lot
of restructuring.

This recovers the regressions from D151472.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D151858




More information about the All-commits mailing list