@@ -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- =======
205202int 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- =======
215208bool 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- =======
229214void 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