[PATCH] D62783: [DAG] isBitwiseNot / isConstOrConstSplat - add support for build vector undefs + truncation (PR41020)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 03:19:47 PDT 2019


RKSimon updated this revision to Diff 202590.
RKSimon added a comment.

assert that the build vector elements are same size / truncated

avoid temp APInt by using APInt::countTrailingOnes() instead of truncating to call isAllOnesValue()


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62783/new/

https://reviews.llvm.org/D62783

Files:
  include/llvm/CodeGen/SelectionDAGNodes.h
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/AArch64/sat-add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62783.202590.patch
Type: text/x-patch
Size: 8180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190602/07a0ca87/attachment.bin>


More information about the llvm-commits mailing list