OSDN Git Service

Start checking from the root of the matched sub-tree.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 14 Oct 2006 08:30:53 +0000 (08:30 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 14 Oct 2006 08:30:53 +0000 (08:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30957 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGISel.h

index a348aa4..f733d96 100644 (file)
@@ -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.