summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-21 20:50:09 +0000
committerDan Gohman <gohman@apple.com>2009-01-21 20:50:09 +0000
commit922bf52e8e5865b8537bd50702d63eb9ae6022d1 (patch)
tree94e6597d5d2433d026aa025a4d2784894e784a0e
parent1f86498f9356864881356f4c6815d31e1bdeddb7 (diff)
downloadbcm5719-llvm-922bf52e8e5865b8537bd50702d63eb9ae6022d1.tar.gz
bcm5719-llvm-922bf52e8e5865b8537bd50702d63eb9ae6022d1.zip
Add a comment to SelectionDAG::ReplaceAllUsesWith to describe a subtle
iteraction with SelectionDAG CSE. llvm-svn: 62713
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAG.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index d7802d3cde6..f93b6207b8f 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -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,
OpenPOWER on IntegriCloud