[PATCH] D97973: [NFC][AliasSetTracker] Remove implicit conversion AliasResult to integer.

Daniil Fukalov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 4 13:53:48 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9899427174b4: [NFC][AliasSetTracker] Remove implicit conversion AliasResult to integer. (authored by dfukalov).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97973/new/

https://reviews.llvm.org/D97973

Files:
  llvm/lib/Analysis/AliasSetTracker.cpp


Index: llvm/lib/Analysis/AliasSetTracker.cpp
===================================================================
--- llvm/lib/Analysis/AliasSetTracker.cpp
+++ llvm/lib/Analysis/AliasSetTracker.cpp
@@ -300,7 +300,7 @@
                                                     const AAMDNodes &AAInfo,
                                                     bool &MustAliasAll) {
   AliasSet *FoundSet = nullptr;
-  AliasResult AllAR = MustAlias;
+  MustAliasAll = true;
   for (AliasSet &AS : llvm::make_early_inc_range(*this)) {
     if (AS.Forward)
       continue;
@@ -309,8 +309,8 @@
     if (AR == NoAlias)
       continue;
 
-    AllAR =
-        AliasResult(AllAR & AR); // Possible downgrade to May/Partial, even No
+    if (AR != MustAlias)
+      MustAliasAll = false;
 
     if (!FoundSet) {
       // If this is the first alias set ptr can go into, remember it.
@@ -321,7 +321,6 @@
     }
   }
 
-  MustAliasAll = (AllAR == MustAlias);
   return FoundSet;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97973.328299.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210304/160caaaf/attachment.bin>


More information about the llvm-commits mailing list