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:
58e4017
)
Fix an msan warning for use of an uninitialized variable.
author
River Riddle
<riverriddle@google.com>
Fri, 31 May 2019 19:53:22 +0000
(12:53 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Sun, 2 Jun 2019 03:12:21 +0000
(20:12 -0700)
--
PiperOrigin-RevId:
250939301
mlir/lib/Quantizer/Support/UniformSolvers.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Quantizer/Support/UniformSolvers.cpp
b/mlir/lib/Quantizer/Support/UniformSolvers.cpp
index
6a79c7a
..
b4c14ca
100644
(file)
--- a/
mlir/lib/Quantizer/Support/UniformSolvers.cpp
+++ b/
mlir/lib/Quantizer/Support/UniformSolvers.cpp
@@
-74,7
+74,7
@@
bool UniformParamsFromMinMaxSolver::compute() {
double deltaMax =
((numLevelsDouble * deltaInit) + 2 * deltaInit) / numLevelsDouble;
double deltaMid;
- double prevDeltaMid;
+ double prevDeltaMid
= 0.0
;
for (stepCount = 0; stepCount < 60; ++stepCount) {
deltaMid = (deltaInit + deltaMax) / 2.0;
auto fInit =