diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/unittests/Analysis/ScalarEvolutionTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp index d4540834239..3d412f43d27 100644 --- a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp +++ b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp @@ -1000,9 +1000,9 @@ TEST_F(ScalarEvolutionsTest, SCEVExitLimitForgetLoop) { Cond->eraseFromParent(); Builder.SetInsertPoint(L); - Builder.CreateICmp(ICmpInst::ICMP_SLT, Add, ConstantInt::get(T_int64, 2000), - "new.cond"); - Builder.CreateCondBr(Cond, L, Post); + auto *NewCond = Builder.CreateICmp( + ICmpInst::ICMP_SLT, Add, ConstantInt::get(T_int64, 2000), "new.cond"); + Builder.CreateCondBr(NewCond, L, Post); const SCEV *NewEC = SE.getBackedgeTakenCount(Loop); EXPECT_NE(EC, NewEC); } @@ -1081,9 +1081,9 @@ TEST_F(ScalarEvolutionsTest, SCEVExitLimitForgetValue) { Load->eraseFromParent(); Builder.SetInsertPoint(L); - Builder.CreateICmp(ICmpInst::ICMP_SLT, Add, ConstantInt::get(T_int64, 2000), - "new.cond"); - Builder.CreateCondBr(Cond, L, Post); + auto *NewCond = Builder.CreateICmp( + ICmpInst::ICMP_SLT, Add, ConstantInt::get(T_int64, 2000), "new.cond"); + Builder.CreateCondBr(NewCond, L, Post); const SCEV *NewEC = SE.getBackedgeTakenCount(Loop); EXPECT_NE(EC, NewEC); } |

