forked from OSchip/llvm-project
Remove redundant condition (PR28352) NFCI.
We were already testing is the op was not a leaf, so need to then test if it was a leaf (added it to the assert instead). llvm-svn: 286817
This commit is contained in:
parent
f10d114d43
commit
475b40dab8
|
@ -508,9 +508,10 @@ static bool LinearizeExprTree(BinaryOperator *I,
|
|||
continue;
|
||||
}
|
||||
// No uses outside the expression, try morphing it.
|
||||
} else if (It != Leaves.end()) {
|
||||
} else {
|
||||
// Already in the leaf map.
|
||||
assert(Visited.count(Op) && "In leaf map but not visited!");
|
||||
assert(It != Leaves.end() && Visited.count(Op) &&
|
||||
"In leaf map but not visited!");
|
||||
|
||||
// Update the number of paths to the leaf.
|
||||
IncorporateWeight(It->second, Weight, Opcode);
|
||||
|
|
Loading…
Reference in New Issue