summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGISel.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-10-14 08:30:53 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-10-14 08:30:53 +0000
commitbddc5d04d7dd74ee570750bf59c694c4b7958053 (patch)
tree014d5b2f541bd84c20af0fd4d7b8aa99b6cc1d7f /include/llvm/CodeGen/SelectionDAGISel.h
parentce1381afd9e77c323b973989d8bb257dc33e7dda (diff)
downloadllvm-bddc5d04d7dd74ee570750bf59c694c4b7958053.tar.gz
llvm-bddc5d04d7dd74ee570750bf59c694c4b7958053.tar.bz2
llvm-bddc5d04d7dd74ee570750bf59c694c4b7958053.tar.xz
Start checking from the root of the matched sub-tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGISel.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index a348aa4a18..f733d965fd 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -71,8 +71,8 @@ public:
}
/// CanBeFoldedBy - Returns true if the specific operand node N of U can be
- /// folded during instruction selection?
- virtual bool CanBeFoldedBy(SDNode *N, SDNode *U) { return true; }
+ /// folded during instruction selection that starts at Root?
+ virtual bool CanBeFoldedBy(SDNode *N, SDNode *U, SDNode *Root) { return true;}
/// CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer
/// to use for this target when scheduling the DAG.