forked from OSchip/llvm-project
parent
a70d138457
commit
5f08ec854f
|
@ -404,7 +404,7 @@ static bool ShouldBreakUpSubtract(Instruction *Sub) {
|
||||||
isReassociableOp(Sub->getOperand(0), Instruction::Sub))
|
isReassociableOp(Sub->getOperand(0), Instruction::Sub))
|
||||||
return true;
|
return true;
|
||||||
if (isReassociableOp(Sub->getOperand(1), Instruction::Add) ||
|
if (isReassociableOp(Sub->getOperand(1), Instruction::Add) ||
|
||||||
isReassociableOp(Sub->getOperand(0), Instruction::Sub))
|
isReassociableOp(Sub->getOperand(1), Instruction::Sub))
|
||||||
return true;
|
return true;
|
||||||
if (Sub->hasOneUse() &&
|
if (Sub->hasOneUse() &&
|
||||||
(isReassociableOp(Sub->use_back(), Instruction::Add) ||
|
(isReassociableOp(Sub->use_back(), Instruction::Add) ||
|
||||||
|
|
Loading…
Reference in New Issue