We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf93c0 commit af497d9Copy full SHA for af497d9
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -1210,14 +1210,10 @@ struct DSEState {
1210
bool isInvisibleToCallerAfterRet(const Value *V) {
1211
if (isa<AllocaInst>(V))
1212
return true;
1213
+
1214
auto I = InvisibleToCallerAfterRet.insert({V, false});
- if (I.second) {
1215
- if (!isInvisibleToCallerOnUnwind(V)) {
1216
- I.first->second = false;
1217
- } else if (isNoAliasCall(V)) {
1218
- I.first->second = !PointerMayBeCaptured(V, /*ReturnCaptures=*/true);
1219
- }
1220
+ if (I.second && isInvisibleToCallerOnUnwind(V) && isNoAliasCall(V))
+ I.first->second = !PointerMayBeCaptured(V, /*ReturnCaptures=*/true);
1221
return I.first->second;
1222
}
1223
0 commit comments