@@ -61,8 +61,7 @@ TEST(LoopStrengthReductionTests, SimpleCandidateOperation)
6161 const auto lv2 = theta->AddLoopVar (cv1); // arr ptr
6262
6363 const auto & c2 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 2 );
64- const auto & addNode1 =
65- jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ lv1.pre , c2.output (0 ) }, 32 );
64+ auto & addNode1 = jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ lv1.pre , c2.output (0 ) }, 32 );
6665
6766 const auto & c3 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 3 );
6867 auto & mulNode = jlm::rvsdg::CreateOpNode<IntegerMulOperation>({ lv1.pre , c3.output (0 ) }, 32 );
@@ -189,8 +188,7 @@ TEST(LoopStrengthReductionTests, CandidateOperationDependentOnInvalidInductionVa
189188 const auto lv2 = theta->AddLoopVar (cv1); // arr ptr
190189
191190 const auto & c2 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 2 );
192- const auto & mulNode1 =
193- jlm::rvsdg::CreateOpNode<IntegerMulOperation>({ lv1.pre , c2.output (0 ) }, 32 );
191+ auto & mulNode1 = jlm::rvsdg::CreateOpNode<IntegerMulOperation>({ lv1.pre , c2.output (0 ) }, 32 );
194192
195193 const auto & c3 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 3 );
196194 auto & mulNode2 = jlm::rvsdg::CreateOpNode<IntegerMulOperation>({ lv1.pre , c3.output (0 ) }, 32 );
@@ -290,14 +288,13 @@ TEST(LoopStrengthReductionTests, NestedCandidateOperation)
290288 const auto lv2 = theta->AddLoopVar (cv1); // arr ptr
291289
292290 const auto & c2 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 2 );
293- const auto & addNode1 =
294- jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ lv1.pre , c2.output (0 ) }, 32 );
291+ auto & addNode1 = jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ lv1.pre , c2.output (0 ) }, 32 );
295292
296293 const auto & c3 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 3 );
297294 auto & mulNode = jlm::rvsdg::CreateOpNode<IntegerMulOperation>({ lv1.pre , c3.output (0 ) }, 32 );
298295
299296 const auto & c1 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 1 );
300- const auto & addNode2 =
297+ auto & addNode2 =
301298 jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ mulNode.output (0 ), c1.output (0 ) }, 32 );
302299
303300 const auto & sExtNode = SExtOperation::create (64 , addNode2.output (0 ));
@@ -424,14 +421,13 @@ TEST(LoopStrengthReductionTests, NestedCandidateOperationWithUsersForBoth)
424421 const auto lv2 = theta->AddLoopVar (cv1); // arr ptr
425422
426423 const auto & c2 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 2 );
427- const auto & addNode1 =
428- jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ lv1.pre , c2.output (0 ) }, 32 );
424+ auto & addNode1 = jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ lv1.pre , c2.output (0 ) }, 32 );
429425
430426 const auto & c3 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 3 );
431427 auto & mulNode = jlm::rvsdg::CreateOpNode<IntegerMulOperation>({ lv1.pre , c3.output (0 ) }, 32 );
432428
433429 const auto & c1 = IntegerConstantOperation::Create (*theta->subregion (), 32 , 1 );
434- const auto & addNode2 =
430+ auto & addNode2 =
435431 jlm::rvsdg::CreateOpNode<IntegerAddOperation>({ mulNode.output (0 ), c1.output (0 ) }, 32 );
436432
437433 const auto & c0_2 = IntegerConstantOperation::Create (*theta->subregion (), 64 , 0 );
0 commit comments