[llvm] 7bf9065 - [Attributor][NFC] Clang format
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 20 16:08:09 PST 2022
Author: Johannes Doerfert
Date: 2022-01-20T18:06:53-06:00
New Revision: 7bf9065ad7d9f6c908ab109fa85bbc36ae6a1130
URL: https://github.com/llvm/llvm-project/commit/7bf9065ad7d9f6c908ab109fa85bbc36ae6a1130
DIFF: https://github.com/llvm/llvm-project/commit/7bf9065ad7d9f6c908ab109fa85bbc36ae6a1130.diff
LOG: [Attributor][NFC] Clang format
Added:
Modified:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 1a7763cbf49c0..71caa027498b7 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -6007,9 +6007,10 @@ struct AAHeapToStackFunction final : public AAHeapToStack {
Optional<APInt> getSize(Attributor &A, const AbstractAttribute &AA,
AllocationInfo &AI) {
- auto Mapper = [&](const Value *V) -> const Value* {
+ auto Mapper = [&](const Value *V) -> const Value * {
bool UsedAssumedInformation = false;
- if (Optional<Constant *> SimpleV = A.getAssumedConstant(*V, AA, UsedAssumedInformation))
+ if (Optional<Constant *> SimpleV =
+ A.getAssumedConstant(*V, AA, UsedAssumedInformation))
if (*SimpleV)
return *SimpleV;
return V;
@@ -6266,8 +6267,7 @@ ChangeStatus AAHeapToStackFunction::updateImpl(Attributor &A) {
if (!Size.hasValue() || Size.getValue().ugt(MaxHeapToStackSize)) {
LLVM_DEBUG({
if (!Size.hasValue())
- dbgs() << "[H2S] Unknown allocation size: " << *AI.CB
- << "\n";
+ dbgs() << "[H2S] Unknown allocation size: " << *AI.CB << "\n";
else
dbgs() << "[H2S] Allocation size too large: " << *AI.CB << " vs. "
<< MaxHeapToStackSize << "\n";
More information about the llvm-commits
mailing list