diff options
author | Samuel Benzaquen <sbenza@google.com> | 2014-04-09 14:17:23 +0000 |
---|---|---|
committer | Samuel Benzaquen <sbenza@google.com> | 2014-04-09 14:17:23 +0000 |
commit | 110f3cc45a141a7c69c81099b44f4f99477bd1ee (patch) | |
tree | 41b98f2dd22b6f95190a5210ffe85e9e1253d29a /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | b55248278f1a74db0862a2604beadb72d76faf6f (diff) | |
download | bcm5719-llvm-110f3cc45a141a7c69c81099b44f4f99477bd1ee.tar.gz bcm5719-llvm-110f3cc45a141a7c69c81099b44f4f99477bd1ee.zip |
Extend the check to detect patterns like 'ptr.get() == nullptr'
Summary:
Extend the check to detect patterns like 'ptr.get() == nullptr'
It detects == and != when any argument is a ptr.get() and the other is a
nullptr.
Only supports standard smart pointer types std::unique_ptr and std::shared_ptr.
Does not support the case 'ptr.get() == other.get()' yet.
Reviewers: djasper
CC: cfe-commits, alexfh
Differential Revision: http://llvm-reviews.chandlerc.com/D3294
llvm-svn: 205854
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions