[llvm-branch-commits] [llvm] d08d490 - [OpenMPOpt][NFC] Clang format

Johannes Doerfert via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 15 14:56:34 PST 2020


Author: Johannes Doerfert
Date: 2020-12-15T16:51:34-06:00
New Revision: d08d490a4cb93d05d728b6661f8c34d0064a53c6

URL: https://github.com/llvm/llvm-project/commit/d08d490a4cb93d05d728b6661f8c34d0064a53c6
DIFF: https://github.com/llvm/llvm-project/commit/d08d490a4cb93d05d728b6661f8c34d0064a53c6.diff

LOG: [OpenMPOpt][NFC] Clang format

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index f1c953afca25..2433b1f0c375 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -55,7 +55,6 @@ static cl::opt<bool> HideMemoryTransferLatency(
              " transfers"),
     cl::Hidden, cl::init(false));
 
-
 STATISTIC(NumOpenMPRuntimeCallsDeduplicated,
           "Number of OpenMP runtime calls deduplicated");
 STATISTIC(NumOpenMPParallelRegionsDeleted,
@@ -426,8 +425,7 @@ struct OffloadArray {
   /// instruction \p Before is reached.
   bool getValues(AllocaInst &Array, Instruction &Before) {
     // Initialize container.
-    const uint64_t NumValues =
-        Array.getAllocatedType()->getArrayNumElements();
+    const uint64_t NumValues = Array.getAllocatedType()->getArrayNumElements();
     StoredValues.assign(NumValues, nullptr);
     LastAccesses.assign(NumValues, nullptr);
 
@@ -449,8 +447,8 @@ struct OffloadArray {
 
       auto *S = cast<StoreInst>(&I);
       int64_t Offset = -1;
-      auto *Dst = GetPointerBaseWithConstantOffset(S->getPointerOperand(),
-                                                   Offset, DL);
+      auto *Dst =
+          GetPointerBaseWithConstantOffset(S->getPointerOperand(), Offset, DL);
       if (Dst == &Array) {
         int64_t Idx = Offset / PointerSize;
         StoredValues[Idx] = getUnderlyingObject(S->getValueOperand());


        


More information about the llvm-branch-commits mailing list