summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Target.td4
-rw-r--r--llvm/lib/Target/TargetSelectionDAG.td8
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/Target.td b/llvm/lib/Target/Target.td
index 4d6c80cf97f..663dfce91e4 100644
--- a/llvm/lib/Target/Target.td
+++ b/llvm/lib/Target/Target.td
@@ -144,8 +144,8 @@ class Instruction {
// code.
list<Predicate> Predicates = [];
- // Added cost passed onto matching pattern.
- int AddedCost = 0;
+ // Added complexity passed onto matching pattern.
+ int AddedComplexity = 0;
// These bits capture information about the high-level semantics of the
// instruction.
diff --git a/llvm/lib/Target/TargetSelectionDAG.td b/llvm/lib/Target/TargetSelectionDAG.td
index 38613c41882..61283ae2dfb 100644
--- a/llvm/lib/Target/TargetSelectionDAG.td
+++ b/llvm/lib/Target/TargetSelectionDAG.td
@@ -470,10 +470,10 @@ def setne : PatFrag<(ops node:$lhs, node:$rhs),
//
class Pattern<dag patternToMatch, list<dag> resultInstrs> {
- dag PatternToMatch = patternToMatch;
- list<dag> ResultInstrs = resultInstrs;
- list<Predicate> Predicates = []; // See class Instruction in Target.td.
- int AddedCost = 0; // See class Instruction in Target.td.
+ dag PatternToMatch = patternToMatch;
+ list<dag> ResultInstrs = resultInstrs;
+ list<Predicate> Predicates = []; // See class Instruction in Target.td.
+ int AddedComplexity = 0; // See class Instruction in Target.td.
}
// Pat - A simple (but common) form of a pattern, which produces a simple result
OpenPOWER on IntegriCloud