[SelectionDAG] Use llvm::any_of to simplify a loop. NFC
This commit is contained in:
parent
b1dcd6bafb
commit
572dfef1db
|
@ -3444,12 +3444,10 @@ void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch,
|
||||||
// such nodes must have a chain, it suffices to check ChainNodesMatched.
|
// such nodes must have a chain, it suffices to check ChainNodesMatched.
|
||||||
// We need to perform this check before potentially modifying one of the
|
// We need to perform this check before potentially modifying one of the
|
||||||
// nodes via MorphNode.
|
// nodes via MorphNode.
|
||||||
bool MayRaiseFPException = false;
|
bool MayRaiseFPException =
|
||||||
for (auto *N : ChainNodesMatched)
|
llvm::any_of(ChainNodesMatched, [this](SDNode *N) {
|
||||||
if (mayRaiseFPException(N) && !N->getFlags().hasNoFPExcept()) {
|
return mayRaiseFPException(N) && !N->getFlags().hasNoFPExcept();
|
||||||
MayRaiseFPException = true;
|
});
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create the node.
|
// Create the node.
|
||||||
MachineSDNode *Res = nullptr;
|
MachineSDNode *Res = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue