mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[CGP] fix formatting; NFC
llvm-svn: 356572
This commit is contained in:
parent
9500985700
commit
39c0da6484
@ -1183,9 +1183,10 @@ static bool replaceMathCmpWithIntrinsic(BinaryOperator *BO, CmpInst *Cmp,
|
||||
|
||||
// Check that the insertion doesn't create a value that is live across more
|
||||
// than two blocks, so to minimise the increase in register pressure.
|
||||
if (BO->getParent() != Cmp->getParent()) {
|
||||
BasicBlock *Dominator = MathDominates ? BO->getParent() : Cmp->getParent();
|
||||
BasicBlock *Dominated = MathDominates ? Cmp->getParent() : BO->getParent();
|
||||
BasicBlock *MathBB = BO->getParent(), *CmpBB = Cmp->getParent();
|
||||
if (MathBB != CmpBB) {
|
||||
BasicBlock *Dominator = MathDominates ? MathBB : CmpBB;
|
||||
BasicBlock *Dominated = MathDominates ? CmpBB : MathBB;
|
||||
auto Successors = successors(Dominator);
|
||||
if (llvm::find(Successors, Dominated) == Successors.end())
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user