diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-02 11:56:39 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-02 11:56:39 +0000 |
commit | ffb4d2bff7f1024aa3accd1c387017003b8ce94d (patch) | |
tree | 0bf7a254c4bdf4429dc85ea9495bdfd548f179b3 /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 88522ce38892808818c835497e850fba6ae3448c (diff) | |
download | llvm-ffb4d2bff7f1024aa3accd1c387017003b8ce94d.zip llvm-ffb4d2bff7f1024aa3accd1c387017003b8ce94d.tar.gz llvm-ffb4d2bff7f1024aa3accd1c387017003b8ce94d.tar.bz2 |
[DAG] isBitwiseNot / isConstOrConstSplat - add support for build vector undefs + truncation (PR41020)
Add (opt-in) support for implicit truncation to isConstOrConstSplat, which allows us to match truncated 'all ones' cases in isBitwiseNot.
PR41020 compares against using ISD::isBuildVectorAllOnes() instead, but that predicate silently accepts any UNDEF elements in the build vector which might not be what we want in isBitwiseNot - so I've added an opt-in 'AllowUndefs' flag that is set to false by default but will allow us to enable it on individual cases where its safe.
Differential Revision: https://reviews.llvm.org/D62783
llvm-svn: 362323
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions