Skip to content

Commit 6bf2932

Browse files
committed
format
1 parent 4f72b27 commit 6bf2932

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

llvm/unittests/Analysis/ScalarEvolutionTest.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,11 +1753,14 @@ TEST_F(ScalarEvolutionsTest, ComplexityComparatorIsStrictWeakOrdering3) {
17531753
GlobalValue::InternalLinkage, Init, "V2");
17541754
Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
17551755
BasicBlock *BB = BasicBlock::Create(Context, "entry", F);
1756-
Value *C0 = ICmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, V0, Null, "c0", BB);
1757-
Value *C1 = ICmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, V1, Null, "c1", BB);
1758-
Value *C2 = ICmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, V2, Null, "c2", BB);
1759-
Value*Or0 = BinaryOperator::CreateOr(C0, C1, "or0", BB);
1760-
Value*Or1 = BinaryOperator::CreateOr(Or0, C2, "or1", BB);
1756+
Value *C0 = ICmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, V0, Null,
1757+
"c0", BB);
1758+
Value *C1 = ICmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, V1, Null,
1759+
"c1", BB);
1760+
Value *C2 = ICmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, V2, Null,
1761+
"c2", BB);
1762+
Value *Or0 = BinaryOperator::CreateOr(C0, C1, "or0", BB);
1763+
Value *Or1 = BinaryOperator::CreateOr(Or0, C2, "or1", BB);
17611764
ReturnInst::Create(Context, nullptr, BB);
17621765
ScalarEvolution SE = buildSE(*F);
17631766
// When _LIBCPP_HARDENING_MODE == _LIBCPP_HARDENING_MODE_DEBUG, this will

0 commit comments

Comments
 (0)