Skip to content

Commit 548f359

Browse files
committed
fix formatting
1 parent a488438 commit 548f359

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

llvm/lib/Transforms/Scalar/JumpThreading.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,10 +1525,14 @@ Constant *JumpThreadingPass::evaluateOnPredecessorEdge(BasicBlock *BB,
15251525
// instructions in unreachable code and check before going into recursion.
15261526
if (CmpInst *CondCmp = dyn_cast<CmpInst>(V)) {
15271527
if (CondCmp->getParent() == BB) {
1528-
Constant *Op0 = CondCmp->getOperand(0) == CondCmp ? nullptr :
1529-
evaluateOnPredecessorEdge(BB, PredPredBB, CondCmp->getOperand(0), DL);
1530-
Constant *Op1 = CondCmp->getOperand(1) == CondCmp ? nullptr :
1531-
evaluateOnPredecessorEdge(BB, PredPredBB, CondCmp->getOperand(1), DL);
1528+
Constant *Op0 = CondCmp->getOperand(0) == CondCmp
1529+
? nullptr
1530+
: evaluateOnPredecessorEdge(
1531+
BB, PredPredBB, CondCmp->getOperand(0), DL);
1532+
Constant *Op1 = CondCmp->getOperand(1) == CondCmp
1533+
? nullptr
1534+
: evaluateOnPredecessorEdge(
1535+
BB, PredPredBB, CondCmp->getOperand(1), DL);
15321536
if (Op0 && Op1) {
15331537
return ConstantFoldCompareInstOperands(CondCmp->getPredicate(), Op0,
15341538
Op1, DL);

0 commit comments

Comments
 (0)