Lines Matching defs:LHS
73 // PatternSortingPredicate - return true if we prefer to match LHS before RHS.
80 bool operator()(const PatternToMatch *LHS, const PatternToMatch *RHS) {
81 const TreePatternNode *LHSSrc = LHS->getSrcPattern();
97 unsigned LHSSize = LHS->getPatternComplexity(CGP);
99 if (LHSSize > RHSSize) return true; // LHS -> bigger -> less cost
103 unsigned LHSCost = getResultPatternCost(LHS->getDstPattern(), CGP);
108 unsigned LHSPatSize = getResultPatternSize(LHS->getDstPattern(), CGP);
115 assert(LHS == RHS || LHS->ID != RHS->ID);
116 return LHS->ID < RHS->ID;