llvm.org GIT mirror llvm / 9da1c6d
SDAG: Replace some unreachable code with an assert. NFC The current node shouldn't be (and isn't) removed partway through selection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271699 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 4 years ago
1 changed file(s) with 3 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
33643364 nullptr));
33653365 }
33663366
3367 } else if (NodeToMatch->getOpcode() != ISD::DELETED_NODE) {
3367 } else {
3368 assert(NodeToMatch->getOpcode() != ISD::DELETED_NODE &&
3369 "NodeToMatch was removed partway through selection");
33683370 Res = MorphNode(NodeToMatch, TargetOpc, VTList, Ops, EmitNodeInfo);
3369 } else {
3370 // NodeToMatch was eliminated by CSE when the target changed the DAG.
3371 // We will visit the equivalent node later.
3372 DEBUG(dbgs() << "Node was eliminated by CSE\n");
3373 return;
33743371 }
33753372
33763373 // If the node had chain/glue results, update our notion of the current