Skip to content

Commit c9626d2

Browse files
committed
!fixup move block as suggested, thanks
1 parent 1105b3c commit c9626d2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9132,18 +9132,19 @@ static bool matchTwoInputRecurrence(const PHINode *PN, InstTy *&Inst,
91329132
for (unsigned I = 0; I != 2; ++I) {
91339133
if (auto *Operation = dyn_cast<InstTy>(PN->getIncomingValue(I));
91349134
Operation && Operation->getNumOperands() >= 2) {
9135-
Value *LHS = Operation->getOperand(0);
9136-
Value *RHS = Operation->getOperand(1);
9137-
if (LHS != PN && RHS != PN)
9138-
continue;
9139-
91409135
Value *LR;
91419136
if (match(Operation, m_PtrAdd(m_Specific(PN), m_Value(LR)))) {
91429137
Inst = Operation;
91439138
Init = PN->getIncomingValue(!I);
91449139
OtherOp = LR;
91459140
return true;
91469141
}
9142+
9143+
Value *LHS = Operation->getOperand(0);
9144+
Value *RHS = Operation->getOperand(1);
9145+
if (LHS != PN && RHS != PN)
9146+
continue;
9147+
91479148
Inst = Operation;
91489149
Init = PN->getIncomingValue(!I);
91499150
OtherOp = (LHS == PN) ? RHS : LHS;

0 commit comments

Comments
 (0)