[PATCH] D151858: [TargetLowering][ARM][AArch64] Remove usage of NoSignedWrap/NoUnsignedWrap from AVGFLOOR/CEIL transform.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 16:50:08 PDT 2023


craig.topper created this revision.
craig.topper added reviewers: nikic, RKSimon, efriedma.
Herald added subscribers: StephenFan, dmgreen, hiraditya, kristof.beyls.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a project: LLVM.

Use computeOverflowForUnsignedAdd and DAG.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 <https://reviews.llvm.org/D151472>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151858

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151858.527238.patch
Type: text/x-patch
Size: 15282 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230531/52d70b27/attachment.bin>


More information about the llvm-commits mailing list