]> granicus.if.org Git - llvm/commit
[APInt] Implement APInt::intersects without creating a temporary APInt in the multiwo...
authorCraig Topper <craig.topper@gmail.com>
Thu, 20 Apr 2017 02:11:27 +0000 (02:11 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 20 Apr 2017 02:11:27 +0000 (02:11 +0000)
commitbe583f25e07f88e855b54194ddf4b622df8ff35e
treee103a3e353ca804a6e1b3ce1f0935f7b91124fa5
parent69a88f72e90c8d51666bbca8867362d79c35302f
[APInt] Implement APInt::intersects without creating a temporary APInt in the multiword case

Summary: This is a simple question we should be able to answer without creating a temporary to hold the AND result. We can also get an early out as soon as we find a word that intersects.

Reviewers: RKSimon, hans, spatel, davide

Reviewed By: hans, davide

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32253

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300812 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
lib/Support/APInt.cpp