diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-08 18:51:58 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-08 18:51:58 +0000 |
commit | c1c6ef8f74fc550f29cfec1f2fb699dd8c2fb94e (patch) | |
tree | 8c821b6d16ddb0b0516d5abc0630ae81beb613d6 /include/llvm/CodeGen | |
parent | d34167a4abbe576bef7dbe1b88771f09afc82a72 (diff) |
Factor out cycle-finder code and make it generic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGISel.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h index 05a047563a..d2c0dc420f 100644 --- a/include/llvm/CodeGen/SelectionDAGISel.h +++ b/include/llvm/CodeGen/SelectionDAGISel.h @@ -88,10 +88,8 @@ public: /// U can be folded during instruction selection that starts at Root and /// folding N is profitable. virtual - bool IsLegalAndProfitableToFold(SDNode *N, SDNode *U, SDNode *Root) const { - return true; - } - + bool IsLegalAndProfitableToFold(SDNode *N, SDNode *U, SDNode *Root) const; + /// CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer /// to use for this target when scheduling the DAG. virtual ScheduleHazardRecognizer *CreateTargetHazardRecognizer(); |