https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/173694
>From ba9d3c13c2efe720833d62f1c6cbc150eb399ceb Mon Sep 17 00:00:00 2001 From: Aiden Grossman <[email protected]> Date: Sat, 27 Dec 2025 02:05:36 +0000 Subject: [PATCH] formatting Created using spr 1.3.7 --- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index 25d473b5beb72..78734beac4bbe 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -1214,7 +1214,8 @@ struct DSEState { return OW_None; } - bool isInvisibleToCallerAfterRet(const Value *V, const Value *Ptr, const LocationSize StoreSize) { + bool isInvisibleToCallerAfterRet(const Value *V, const Value *Ptr, + const LocationSize StoreSize) { if (isa<AllocaInst>(V)) return true; @@ -1774,7 +1775,8 @@ struct DSEState { BasicBlock *MaybeKillingBlock = UseInst->getParent(); if (PostOrderNumbers.find(MaybeKillingBlock)->second < PostOrderNumbers.find(MaybeDeadAccess->getBlock())->second) { - if (!isInvisibleToCallerAfterRet(KillingUndObj, KillingLoc.Ptr, KillingLoc.Size)) { + if (!isInvisibleToCallerAfterRet(KillingUndObj, KillingLoc.Ptr, + KillingLoc.Size)) { LLVM_DEBUG(dbgs() << " ... found killing def " << *UseInst << "\n"); KillingDefs.insert(UseInst); @@ -1792,7 +1794,8 @@ struct DSEState { // For accesses to locations visible after the function returns, make sure // that the location is dead (=overwritten) along all paths from // MaybeDeadAccess to the exit. - if (!isInvisibleToCallerAfterRet(KillingUndObj, KillingLoc.Ptr, KillingLoc.Size)) { + if (!isInvisibleToCallerAfterRet(KillingUndObj, KillingLoc.Ptr, + KillingLoc.Size)) { SmallPtrSet<BasicBlock *, 16> KillingBlocks; for (Instruction *KD : KillingDefs) KillingBlocks.insert(KD->getParent()); _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
