Skip to content

Commit d08d490

Browse files
committed
[OpenMPOpt][NFC] Clang format
1 parent 02220f3 commit d08d490

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ static cl::opt<bool> HideMemoryTransferLatency(
5555
" transfers"),
5656
cl::Hidden, cl::init(false));
5757

58-
5958
STATISTIC(NumOpenMPRuntimeCallsDeduplicated,
6059
"Number of OpenMP runtime calls deduplicated");
6160
STATISTIC(NumOpenMPParallelRegionsDeleted,
@@ -426,8 +425,7 @@ struct OffloadArray {
426425
/// instruction \p Before is reached.
427426
bool getValues(AllocaInst &Array, Instruction &Before) {
428427
// Initialize container.
429-
const uint64_t NumValues =
430-
Array.getAllocatedType()->getArrayNumElements();
428+
const uint64_t NumValues = Array.getAllocatedType()->getArrayNumElements();
431429
StoredValues.assign(NumValues, nullptr);
432430
LastAccesses.assign(NumValues, nullptr);
433431

@@ -449,8 +447,8 @@ struct OffloadArray {
449447

450448
auto *S = cast<StoreInst>(&I);
451449
int64_t Offset = -1;
452-
auto *Dst = GetPointerBaseWithConstantOffset(S->getPointerOperand(),
453-
Offset, DL);
450+
auto *Dst =
451+
GetPointerBaseWithConstantOffset(S->getPointerOperand(), Offset, DL);
454452
if (Dst == &Array) {
455453
int64_t Idx = Offset / PointerSize;
456454
StoredValues[Idx] = getUnderlyingObject(S->getValueOperand());

0 commit comments

Comments
 (0)