File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1146,9 +1146,8 @@ template <typename... PatternTs> struct ReassociatableOpc_match {
11461146 bool match (const MatchContext &Ctx, SDValue N) {
11471147 SmallVector<SDValue> Leaves;
11481148 collectLeaves (N, Leaves);
1149- if (Leaves.size () != std::tuple_size_v<std::tuple<PatternTs...>>) {
1149+ if (Leaves.size () != std::tuple_size_v<std::tuple<PatternTs...>>)
11501150 return false ;
1151- }
11521151
11531152 // Matches[I][J] == true iff sd_context_match(Leaves[I], Ctx,
11541153 // std::get<J>(Patterns)) == true
@@ -1169,9 +1168,8 @@ template <typename... PatternTs> struct ReassociatableOpc_match {
11691168
11701169 void collectLeaves (SDValue V, SmallVector<SDValue> &Leaves) {
11711170 if (V->getOpcode () == Opcode) {
1172- for (size_t I = 0 , N = V->getNumOperands (); I < N; I++) {
1171+ for (size_t I = 0 , N = V->getNumOperands (); I < N; I++)
11731172 collectLeaves (V->getOperand (I), Leaves);
1174- }
11751173 } else {
11761174 Leaves.emplace_back (V);
11771175 }
You can’t perform that action at this time.
0 commit comments