diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-29 20:26:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-29 20:26:30 +0000 |
commit | 6c81ebc97dab01bb55c1031939a7dc393d69206e (patch) | |
tree | 121fb9d7faac98b8b03c9f58003b547880fc5e6a /llvm/lib/Transforms | |
parent | 01246aa56d3234af195f655771c5c295d0893457 (diff) | |
download | bcm5719-llvm-6c81ebc97dab01bb55c1031939a7dc393d69206e.tar.gz bcm5719-llvm-6c81ebc97dab01bb55c1031939a7dc393d69206e.zip |
Add comment
llvm-svn: 6415
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/PRE.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/PRE.cpp b/llvm/lib/Transforms/Scalar/PRE.cpp index 6227a371eb2..3a1239f4e67 100644 --- a/llvm/lib/Transforms/Scalar/PRE.cpp +++ b/llvm/lib/Transforms/Scalar/PRE.cpp @@ -307,6 +307,17 @@ bool PRE::ProcessExpression(Instruction *Expr) { std::vector<Value*> Values; VN->getEqualNumberNodes(Expr, Values); +#if 0 + // FIXME: This should handle PHI nodes correctly. To do this, we need to + // consider expressions of the following form equivalent to this set of + // expressions: + // + // If an operand is a PHI node, add any occurances of the expression with the + // PHI operand replaced with the PHI node operands. This is only valid if the + // PHI operand occurances exist in blocks post-dominated by the incoming edge + // of the PHI node. +#endif + // We have to be careful to handle expression definitions which dominated by // other expressions. These can be directly eliminated in favor of their // dominating value. Keep track of which blocks contain definitions (the key) |