mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
[Reassociate] Rename local variable to not use same name as a member
variable. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -586,7 +586,7 @@ static bool LinearizeExprTree(BinaryOperator *I,
|
|||||||
// ways to get to it.
|
// ways to get to it.
|
||||||
SmallVector<std::pair<BinaryOperator*, APInt>, 8> Worklist; // (Op, Weight)
|
SmallVector<std::pair<BinaryOperator*, APInt>, 8> Worklist; // (Op, Weight)
|
||||||
Worklist.push_back(std::make_pair(I, APInt(Bitwidth, 1)));
|
Worklist.push_back(std::make_pair(I, APInt(Bitwidth, 1)));
|
||||||
bool MadeChange = false;
|
bool Changed = false;
|
||||||
|
|
||||||
// Leaves of the expression are values that either aren't the right kind of
|
// Leaves of the expression are values that either aren't the right kind of
|
||||||
// operation (eg: a constant, or a multiply in an add tree), or are, but have
|
// operation (eg: a constant, or a multiply in an add tree), or are, but have
|
||||||
@ -655,7 +655,7 @@ static bool LinearizeExprTree(BinaryOperator *I,
|
|||||||
// exactly one such use, drop this new use of the leaf.
|
// exactly one such use, drop this new use of the leaf.
|
||||||
assert(!Op->hasOneUse() && "Only one use, but we got here twice!");
|
assert(!Op->hasOneUse() && "Only one use, but we got here twice!");
|
||||||
I->setOperand(OpIdx, UndefValue::get(I->getType()));
|
I->setOperand(OpIdx, UndefValue::get(I->getType()));
|
||||||
MadeChange = true;
|
Changed = true;
|
||||||
|
|
||||||
// If the leaf is a binary operation of the right kind and we now see
|
// If the leaf is a binary operation of the right kind and we now see
|
||||||
// that its multiple original uses were in fact all by nodes belonging
|
// that its multiple original uses were in fact all by nodes belonging
|
||||||
@ -699,7 +699,7 @@ static bool LinearizeExprTree(BinaryOperator *I,
|
|||||||
BO = LowerNegateToMultiply(BO);
|
BO = LowerNegateToMultiply(BO);
|
||||||
DEBUG(dbgs() << *BO << '\n');
|
DEBUG(dbgs() << *BO << '\n');
|
||||||
Worklist.push_back(std::make_pair(BO, Weight));
|
Worklist.push_back(std::make_pair(BO, Weight));
|
||||||
MadeChange = true;
|
Changed = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -739,7 +739,7 @@ static bool LinearizeExprTree(BinaryOperator *I,
|
|||||||
Ops.push_back(std::make_pair(Identity, APInt(Bitwidth, 1)));
|
Ops.push_back(std::make_pair(Identity, APInt(Bitwidth, 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return MadeChange;
|
return Changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
// RewriteExprTree - Now that the operands for this expression tree are
|
// RewriteExprTree - Now that the operands for this expression tree are
|
||||||
|
Reference in New Issue
Block a user