[llvm] [DSE] Simpily if condition (NFC) (PR #137777)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 05:26:51 PDT 2025
================
@@ -1210,13 +1210,11 @@ struct DSEState {
bool isInvisibleToCallerAfterRet(const Value *V) {
if (isa<AllocaInst>(V))
return true;
+
auto I = InvisibleToCallerAfterRet.insert({V, false});
if (I.second) {
- if (!isInvisibleToCallerOnUnwind(V)) {
- I.first->second = false;
- } else if (isNoAliasCall(V)) {
+ if (isInvisibleToCallerOnUnwind(V) && isNoAliasCall(V))
----------------
fhahn wrote:
can also fold into `if` above?
https://github.com/llvm/llvm-project/pull/137777
More information about the llvm-commits
mailing list