mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 23:26:31 +00:00
fix an infinite loop in reassociate building emacs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -932,6 +932,10 @@ void Reassociate::ReassociateBB(BasicBlock *BB) {
|
||||
if (BI->getOpcode() == Instruction::Sub) {
|
||||
if (ShouldBreakUpSubtract(BI)) {
|
||||
BI = BreakUpSubtract(BI, ValueRankMap);
|
||||
// Reset the BBI iterator in case BreakUpSubtract changed the
|
||||
// instruction it points to.
|
||||
BBI = BI;
|
||||
++BBI;
|
||||
MadeChange = true;
|
||||
} else if (BinaryOperator::isNeg(BI)) {
|
||||
// Otherwise, this is a negation. See if the operand is a multiply tree
|
||||
|
Reference in New Issue
Block a user