[llvm] r293705 - NewGVN: Formatting cleanup after lookupOperandLeader change
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 14:31:56 PST 2017
Author: dannyb
Date: Tue Jan 31 16:31:56 2017
New Revision: 293705
URL: http://llvm.org/viewvc/llvm-project?rev=293705&view=rev
Log:
NewGVN: Formatting cleanup after lookupOperandLeader change
Modified:
llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=293705&r1=293704&r2=293705&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Tue Jan 31 16:31:56 2017
@@ -805,8 +805,7 @@ const Expression *NewGVN::performSymboli
// 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(In
} else if (const auto *SE = dyn_cast<StoreExpression>(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<StoreInst>(D)) {
- auto Leader =
- lookupOperandLeader(SI->getValueOperand());
+ auto Leader = lookupOperandLeader(SI->getValueOperand());
VD.Val = alwaysAvailable(Leader) ? Leader : SI->getValueOperand();
} else {
VD.Val = D;
More information about the llvm-commits
mailing list