Skip to content

Commit 1b8c278

Browse files
committed
Rename IsDeadOnUnwind to IsDeadOrInvisibleOnUnwind
1 parent 2277de0 commit 1b8c278

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ bool hasInitializesAttr(Instruction *I) {
853853

854854
struct ArgumentInitInfo {
855855
unsigned Idx;
856-
bool IsDeadOnUnwind;
856+
bool IsDeadOrInvisibleOnUnwind;
857857
ConstantRangeList Inits;
858858
};
859859

@@ -867,9 +867,9 @@ ConstantRangeList getIntersectedInitRangeList(ArrayRef<ArgumentInitInfo> Args,
867867
return {};
868868

869869
// To address unwind, the function should have nounwind attribute or the
870-
// arguments have dead_on_unwind attribute. Otherwise, return empty.
870+
// arguments have dead or invisible on unwind. Otherwise, return empty.
871871
for (const auto &Arg : Args) {
872-
if (!CallHasNoUnwindAttr && !Arg.IsDeadOnUnwind)
872+
if (!CallHasNoUnwindAttr && !Arg.IsDeadOrInvisibleOnUnwind)
873873
return {};
874874
if (Arg.Inits.empty())
875875
return {};
@@ -2284,10 +2284,10 @@ DSEState::getInitializesArgMemLoc(const Instruction *I) {
22842284
// - Or the callee parameter has "dead_on_unwind" attribute.
22852285
// - Or the argument is invisible to caller on unwind, and CB isa<CallInst>
22862286
// which means no unwind edges from this call in the current function.
2287-
bool IsDeadOnUnwind =
2287+
bool IsDeadOrInvisibleOnUnwind =
22882288
CB->paramHasAttr(Idx, Attribute::DeadOnUnwind) ||
22892289
(isInvisibleToCallerOnUnwind(CurArg) && isa<CallInst>(CB));
2290-
ArgumentInitInfo InitInfo{Idx, IsDeadOnUnwind, Inits};
2290+
ArgumentInitInfo InitInfo{Idx, IsDeadOrInvisibleOnUnwind, Inits};
22912291
bool FoundAliasing = false;
22922292
for (auto &[Arg, AliasList] : Arguments) {
22932293
auto AAR = BatchAA.alias(MemoryLocation::getBeforeOrAfter(Arg),
@@ -2302,8 +2302,8 @@ DSEState::getInitializesArgMemLoc(const Instruction *I) {
23022302
// unknown offset between the arguments and we insert an empty init
23032303
// range to discard the entire initializes info while intersecting.
23042304
FoundAliasing = true;
2305-
AliasList.push_back(
2306-
ArgumentInitInfo{Idx, IsDeadOnUnwind, ConstantRangeList()});
2305+
AliasList.push_back(ArgumentInitInfo{Idx, IsDeadOrInvisibleOnUnwind,
2306+
ConstantRangeList()});
23072307
}
23082308
}
23092309
if (!FoundAliasing)

0 commit comments

Comments
 (0)