@@ -3277,9 +3277,9 @@ static bool isRemovableWrite(CallBase &CB, Value *UsedV,
3277
3277
return Dest && Dest->Ptr == UsedV;
3278
3278
}
3279
3279
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) {
3283
3283
SmallVector<Instruction*, 4 > Worklist;
3284
3284
const std::optional<StringRef> Family = getAllocationFamily (AI, &TLI);
3285
3285
Worklist.push_back (AI);
@@ -3454,8 +3454,8 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
3454
3454
// allocating the result.
3455
3455
bool KnowInitUndef = false ;
3456
3456
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 ()));
3459
3459
if (Init) {
3460
3460
if (isa<UndefValue>(Init))
3461
3461
KnowInitUndef = true ;
@@ -3469,7 +3469,8 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
3469
3469
F.hasFnAttribute (Attribute::SanitizeAddress))
3470
3470
KnowInitUndef = false ;
3471
3471
3472
- auto Removable = isAllocSiteRemovable (&MI, Users, TLI, KnowInitZero | KnowInitUndef);
3472
+ auto Removable =
3473
+ isAllocSiteRemovable (&MI, Users, TLI, KnowInitZero | KnowInitUndef);
3473
3474
if (Removable) {
3474
3475
for (unsigned i = 0 , e = Users.size (); i != e; ++i) {
3475
3476
// Lowering all @llvm.objectsize and MTI calls first because they may use
0 commit comments