[llvm] ace3bd0 - Revert "[TableGen] Ignore inaccessible memory when checking pattern flags (#90061)"

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 06:49:43 PDT 2024


Author: Jay Foad
Date: 2024-04-26T14:49:36+01:00
New Revision: ace3bd0580d47fa044014eedd1e42ab6ab4d1e11

URL: https://github.com/llvm/llvm-project/commit/ace3bd0580d47fa044014eedd1e42ab6ab4d1e11
DIFF: https://github.com/llvm/llvm-project/commit/ace3bd0580d47fa044014eedd1e42ab6ab4d1e11.diff

LOG: Revert "[TableGen] Ignore inaccessible memory when checking pattern flags (#90061)"

This reverts commit 6578356a4e3e6acd7983c74feab43ac96925894c.

The patch had no effect due to a silly mistake and fixing the mistake
causes other problems.

Added: 
    

Modified: 
    llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
index e0e31739e26262..88d353e89a4614 100644
--- a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
@@ -3616,15 +3616,7 @@ class InstAnalyzer {
       hasChain = true;
 
     if (const CodeGenIntrinsic *IntInfo = N.getIntrinsicInfo(CDP)) {
-      // Ignore reads/writes to inaccessible memory. These should not imply
-      // mayLoad/mayStore on the instruction because they are often used to
-      // model dependencies that Machine IR expresses as uses/defs of a
-      // special physical register.
-      ModRefInfo MR = ModRefInfo::NoModRef;
-      for (MemoryEffects::Location Loc : MemoryEffects::locations()) {
-        if (Loc != MemoryEffects::Location::InaccessibleMem)
-          MR |= IntInfo->ME.getModRef();
-      }
+      ModRefInfo MR = IntInfo->ME.getModRef();
       // If this is an intrinsic, analyze it.
       if (isRefSet(MR))
         mayLoad = true; // These may load memory.


        


More information about the llvm-commits mailing list