projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c932d3
)
[ValueTracking] Use APInt instead of auto. NFC
author
Craig Topper
<craig.topper@gmail.com>
Tue, 25 Apr 2017 16:48:09 +0000
(16:48 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 25 Apr 2017 16:48:09 +0000
(16:48 +0000)
This is a pre-commit for a patch I'm working on to turn KnownZero/One into a struct. Once I do that the type here will be less obvious.
llvm-svn: 301324
llvm/lib/Analysis/ValueTracking.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/ValueTracking.cpp
b/llvm/lib/Analysis/ValueTracking.cpp
index
ecb169c
..
5067fbc
100644
(file)
--- a/
llvm/lib/Analysis/ValueTracking.cpp
+++ b/
llvm/lib/Analysis/ValueTracking.cpp
@@
-2036,7
+2036,7
@@
static bool isKnownNonEqual(const Value *V1, const Value *V2, const Query &Q) {
APInt KnownOne2(BitWidth, 0);
computeKnownBits(V2, KnownZero2, KnownOne2, 0, Q);
-
auto
OppositeBits = (KnownZero1 & KnownOne2) | (KnownZero2 & KnownOne1);
+
APInt
OppositeBits = (KnownZero1 & KnownOne2) | (KnownZero2 & KnownOne1);
if (OppositeBits.getBoolValue())
return true;
}