mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
simplify some code, BreakUpSubtract always returns nonnull now.
llvm-svn: 47251
This commit is contained in:
parent
d5885d43ef
commit
0b6ec4a6b2
@ -779,10 +779,8 @@ void Reassociate::ReassociateBB(BasicBlock *BB) {
|
||||
// see if we can convert it to X+-Y.
|
||||
if (BI->getOpcode() == Instruction::Sub) {
|
||||
if (ShouldBreakUpSubtract(BI)) {
|
||||
if (Instruction *NI = BreakUpSubtract(BI)) {
|
||||
MadeChange = true;
|
||||
BI = NI;
|
||||
}
|
||||
BI = BreakUpSubtract(BI);
|
||||
MadeChange = true;
|
||||
} else if (BinaryOperator::isNeg(BI)) {
|
||||
// Otherwise, this is a negation. See if the operand is a multiply tree
|
||||
// and if this is not an inner node of a multiply tree.
|
||||
|
Loading…
Reference in New Issue
Block a user