[PATCH] D54790: [ARM] Prevent parallel macs for unsigned values

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 21 05:22:01 PST 2018


samparker created this revision.
samparker added a reviewer: SjoerdMeijer.
Herald added subscribers: chrib, kristof.beyls, javed.absar.

Both zext and sext are currently allowed during the search for narrow sequences and sexts operands are later added to the mac candidates. But operands of muls are also added, without checking whether they're sext or zext, which means we can generate a signed smlad when we shouldn't.


https://reviews.llvm.org/D54790

Files:
  lib/Target/ARM/ARMParallelDSP.cpp
  test/CodeGen/ARM/smlad0.ll
  test/CodeGen/ARM/smlald0.ll
  test/CodeGen/ARM/smlald2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54790.174903.patch
Type: text/x-patch
Size: 10009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181121/89681247/attachment.bin>


More information about the llvm-commits mailing list