Skip to content

Commit 3a6d763

Browse files
committed
clang-format
1 parent 097ffe3 commit 3a6d763

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,9 +3277,9 @@ static bool isRemovableWrite(CallBase &CB, Value *UsedV,
32773277
return Dest && Dest->Ptr == UsedV;
32783278
}
32793279

3280-
static std::optional<ModRefInfo> isAllocSiteRemovable(Instruction *AI,
3281-
SmallVectorImpl<WeakTrackingVH> &Users,
3282-
const TargetLibraryInfo &TLI, bool KnowInit) {
3280+
static std::optional<ModRefInfo>
3281+
isAllocSiteRemovable(Instruction *AI, SmallVectorImpl<WeakTrackingVH> &Users,
3282+
const TargetLibraryInfo &TLI, bool KnowInit) {
32833283
SmallVector<Instruction*, 4> Worklist;
32843284
const std::optional<StringRef> Family = getAllocationFamily(AI, &TLI);
32853285
Worklist.push_back(AI);
@@ -3454,8 +3454,8 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
34543454
// allocating the result.
34553455
bool KnowInitUndef = false;
34563456
bool KnowInitZero = false;
3457-
Constant *Init = getInitialValueOfAllocation(
3458-
&MI, &TLI, Type::getInt8Ty(MI.getContext()));
3457+
Constant *Init =
3458+
getInitialValueOfAllocation(&MI, &TLI, Type::getInt8Ty(MI.getContext()));
34593459
if (Init) {
34603460
if (isa<UndefValue>(Init))
34613461
KnowInitUndef = true;
@@ -3469,7 +3469,8 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
34693469
F.hasFnAttribute(Attribute::SanitizeAddress))
34703470
KnowInitUndef = false;
34713471

3472-
auto Removable = isAllocSiteRemovable(&MI, Users, TLI, KnowInitZero | KnowInitUndef);
3472+
auto Removable =
3473+
isAllocSiteRemovable(&MI, Users, TLI, KnowInitZero | KnowInitUndef);
34733474
if (Removable) {
34743475
for (unsigned i = 0, e = Users.size(); i != e; ++i) {
34753476
// Lowering all @llvm.objectsize and MTI calls first because they may use

0 commit comments

Comments
 (0)