Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 929e9c1

Browse files
committed
Removed lingering merge conflicts
1 parent 6900cd8 commit 929e9c1

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/optimizer/rule_rewrite.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -199,39 +199,23 @@ TVEqualityWithTwoCVTransform::TVEqualityWithTwoCVTransform() {
199199
match_pattern->AddChild(r_eq);
200200
}
201201

202-
<<<<<<< Updated upstream
203-
int TransitiveSingleDepthTransform::Promise(GroupExprTemplate *group_expr, OptimizeContextTemplate *context) const {
204-
=======
205202
int TVEqualityWithTwoCVTransform::Promise(GroupExprTemplate *group_expr, OptimizeContextTemplate *context) const {
206-
>>>>>>> Stashed changes
207203
(void)group_expr;
208204
(void)context;
209205
return static_cast<int>(RulePriority::HIGH);
210206
}
211207

212-
<<<<<<< Updated upstream
213-
bool TransitiveSingleDepthTransform::Check(std::shared_ptr<AbsExpr_Expression> plan, OptimizeContextTemplate *context) const {
214-
=======
215208
bool TVEqualityWithTwoCVTransform::Check(std::shared_ptr<AbsExpr_Expression> plan, OptimizeContextTemplate *context) const {
216-
>>>>>>> Stashed changes
217209
(void)plan;
218210
(void)context;
219211
return true;
220212
}
221213

222-
<<<<<<< Updated upstream
223-
void TransitiveSingleDepthTransform::Transform(std::shared_ptr<AbsExpr_Expression> input,
224-
std::vector<std::shared_ptr<AbsExpr_Expression>> &transformed,
225-
OptimizeContextTemplate *context) const {
226-
(void)context;
227-
//TODO(wz2): TransitiveClosureConstant should work beyond straight equality
228-
=======
229214
void TVEqualityWithTwoCVTransform::Transform(std::shared_ptr<AbsExpr_Expression> input,
230215
std::vector<std::shared_ptr<AbsExpr_Expression>> &transformed,
231216
OptimizeContextTemplate *context) const {
232217
(void)context;
233218
//TODO(wz2): TVEqualityWithTwoCVTransform should work beyond straight equality
234-
>>>>>>> Stashed changes
235219

236220
// Asserting guarantees provided by the GroupExprBindingIterator
237221
// Structure: (A.B = x) AND (A.B = y)
@@ -360,11 +344,7 @@ void TransitiveClosureConstantTransform::Transform(std::shared_ptr<AbsExpr_Expre
360344
PELOTON_ASSERT(l_tv->Children().size() == 0);
361345
PELOTON_ASSERT(l_cv->Children().size() == 0);
362346
PELOTON_ASSERT(l_tv->Op().GetType() == ExpressionType::VALUE_TUPLE);
363-
<<<<<<< Updated upstream
364-
PELOTON_ASSERT(l_tv->Op().GetType() == ExpressionType::VALUE_CONSTANT);
365-
=======
366347
PELOTON_ASSERT(l_cv->Op().GetType() == ExpressionType::VALUE_CONSTANT);
367-
>>>>>>> Stashed changes
368348

369349
auto r_tv_l = r_eq->Children()[0];
370350
auto r_tv_r = r_eq->Children()[1];
@@ -406,12 +386,7 @@ void TransitiveClosureConstantTransform::Transform(std::shared_ptr<AbsExpr_Expre
406386
new_right_eq->PushChild(r_tv_r);
407387
} else {
408388
// At this stage, we have knowledge that A.B = E.F
409-
<<<<<<< Updated upstream
410-
new_right_eq->PushChild(r_tv_r);
411-
=======
412389
new_right_eq->PushChild(r_tv_l);
413-
>>>>>>> Stashed changes
414-
new_right_eq->PushChild(right_val_copy);
415390
}
416391

417392
// Create new root expression

0 commit comments

Comments
 (0)