diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index 1d74e2094fd9..7a7624f77542 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -3025,12 +3025,10 @@ void NewGVN::verifyStoreExpressions() const { // It's okay to have the same expression already in there if it is // identical in nature. // This can happen when the leader of the stored value changes over time. - if (!Okay) { - Okay = Okay && std::get<1>(Res.first->second) == KV.second; - Okay = Okay && - lookupOperandLeader(std::get<2>(Res.first->second)) == - lookupOperandLeader(SE->getStoredValue()); - } + if (!Okay) + Okay = (std::get<1>(Res.first->second) == KV.second) && + (lookupOperandLeader(std::get<2>(Res.first->second)) == + lookupOperandLeader(SE->getStoredValue())); assert(Okay && "Stored expression conflict exists in expression table"); auto *ValueExpr = ValueToExpression.lookup(SE->getStoreInst()); assert(ValueExpr && ValueExpr->equals(*SE) &&