summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-01-31 22:31:56 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-01-31 22:31:56 +0000
commit808e3ff8a26354644378cf417005fc3b3a293eb9 (patch)
treed45d9da3260a67f9dc2865864f82b81a9d4f0e4b
parent203f47bbd8f9303d2291359e5364f9409bafbf9e (diff)
downloadbcm5719-llvm-808e3ff8a26354644378cf417005fc3b3a293eb9.tar.gz
bcm5719-llvm-808e3ff8a26354644378cf417005fc3b3a293eb9.zip
NewGVN: Formatting cleanup after lookupOperandLeader change
llvm-svn: 293705
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 39d5a3d3377..37c09fa5605 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/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<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;
OpenPOWER on IntegriCloud