Add a comment to SelectionDAG::ReplaceAllUsesWith to describe a subtle

iteraction with SelectionDAG CSE.

llvm-svn: 62713
This commit is contained in:
Dan Gohman 2009-01-21 20:50:09 +00:00
parent 1f86498f93
commit 922bf52e8e
1 changed files with 5 additions and 0 deletions

View File

@ -680,6 +680,11 @@ public:
/// informed about nodes that are deleted and modified due to recursive
/// changes in the dag.
///
/// These functions only replace all existing uses. It's possible that as
/// these replacements are being performed, CSE may cause the From node
/// to be given new uses. These new uses of From are left in place, and
/// not automatically transfered to To.
///
void ReplaceAllUsesWith(SDValue From, SDValue Op,
DAGUpdateListener *UpdateListener = 0);
void ReplaceAllUsesWith(SDNode *From, SDNode *To,