Add a comment to SelectionDAG::ReplaceAllUsesWith to describe a subtle
authorDan Gohman <gohman@apple.com>
Wed, 21 Jan 2009 20:50:09 +0000 (20:50 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 21 Jan 2009 20:50:09 +0000 (20:50 +0000)
iteraction with SelectionDAG CSE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62713 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index d7802d3cde61ee5a7304032e6fe11e2d90b7796f..f93b6207b8f974c945915532c019c44527dd7aed 100644 (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,