[PATCH] D68019: [ARM][CGP] Allow signext arguments

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 06:35:11 PDT 2019


samparker created this revision.
samparker added reviewers: SjoerdMeijer, efriedma, dmgreen.
Herald added a subscriber: kristof.beyls.

As we perform a zext on any arguments used in the promoted tree, it doesn't matter if they're marked as signext. The only permitted user(s) in the tree which would interpret the sign bits are signed icmps. For these instructions, their promoted operands are truncated before the icmp uses them.


https://reviews.llvm.org/D68019

Files:
  lib/Target/ARM/ARMCodeGenPrepare.cpp
  test/CodeGen/ARM/CGP/arm-cgp-overflow.ll
  test/CodeGen/ARM/CGP/arm-cgp-phis-ret.ll
  test/CodeGen/ARM/CGP/arm-cgp-signed.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68019.221735.patch
Type: text/x-patch
Size: 4495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190925/4d796669/attachment.bin>


More information about the llvm-commits mailing list