[llvm] [DSE] Simpily if condition (NFC) (PR #137777)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 06:14:35 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))
----------------
NewSigma wrote:
Sure. It depends on preference, but either is fine with me.
https://github.com/llvm/llvm-project/pull/137777
More information about the llvm-commits
mailing list