From 740306c5440b71e99e35864ca95cd2038b3069c8 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Tue, 31 Jan 2017 22:31:56 +0000 Subject: [PATCH] NewGVN: Formatting cleanup after lookupOperandLeader change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293705 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/NewGVN.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Scalar/NewGVN.cpp b/lib/Transforms/Scalar/NewGVN.cpp index 39d5a3d3377..37c09fa5605 100644 --- a/lib/Transforms/Scalar/NewGVN.cpp +++ b/lib/Transforms/Scalar/NewGVN.cpp @@ -805,8 +805,7 @@ const Expression *NewGVN::performSymbolicStoreEvaluation(Instruction *I, // ensuring the store has the same memory state as us already. // The RepStoredValue gets nulled if all the stores disappear in a class, so // we don't need to check if the class contains a store besides us. - if (CC && - CC->RepStoredValue == lookupOperandLeader(SI->getValueOperand())) + if (CC && CC->RepStoredValue == lookupOperandLeader(SI->getValueOperand())) return createStoreExpression(SI, StoreRHS, B); // Also check if our value operand is defined by a load of the same memory // location, and the memory state is the same as it was then @@ -1278,8 +1277,7 @@ void NewGVN::performCongruenceFinding(Instruction *I, const Expression *E) { } else if (const auto *SE = dyn_cast(E)) { StoreInst *SI = SE->getStoreInst(); NewClass->RepLeader = SI; - NewClass->RepStoredValue = - lookupOperandLeader(SI->getValueOperand()); + NewClass->RepStoredValue = lookupOperandLeader(SI->getValueOperand()); // The RepMemoryAccess field will be filled in properly by the // moveValueToNewCongruenceClass call. } else { @@ -1989,8 +1987,7 @@ void NewGVN::convertDenseToDFSOrdered( VD.DFSOut = DomNode->getDFSNumOut(); // If it's a store, use the leader of the value operand. if (auto *SI = dyn_cast(D)) { - auto Leader = - lookupOperandLeader(SI->getValueOperand()); + auto Leader = lookupOperandLeader(SI->getValueOperand()); VD.Val = alwaysAvailable(Leader) ? Leader : SI->getValueOperand(); } else { VD.Val = D; -- 2.50.1