[llvm] r301324 - [ValueTracking] Use APInt instead of auto. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 09:48:10 PDT 2017
Author: ctopper
Date: Tue Apr 25 11:48:09 2017
New Revision: 301324
URL: http://llvm.org/viewvc/llvm-project?rev=301324&view=rev
Log:
[ValueTracking] Use APInt instead of auto. NFC
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.
Modified:
llvm/trunk/lib/Analysis/ValueTracking.cpp
Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=301324&r1=301323&r2=301324&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Tue Apr 25 11:48:09 2017
@@ -2036,7 +2036,7 @@ static bool isKnownNonEqual(const Value
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;
}
More information about the llvm-commits
mailing list