Skip to content

Commit ace3bd0

Browse files
committed
Revert "[TableGen] Ignore inaccessible memory when checking pattern flags (#90061)"
This reverts commit 6578356. The patch had no effect due to a silly mistake and fixing the mistake causes other problems.
1 parent 904b1a8 commit ace3bd0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,15 +3616,7 @@ class InstAnalyzer {
36163616
hasChain = true;
36173617

36183618
if (const CodeGenIntrinsic *IntInfo = N.getIntrinsicInfo(CDP)) {
3619-
// Ignore reads/writes to inaccessible memory. These should not imply
3620-
// mayLoad/mayStore on the instruction because they are often used to
3621-
// model dependencies that Machine IR expresses as uses/defs of a
3622-
// special physical register.
3623-
ModRefInfo MR = ModRefInfo::NoModRef;
3624-
for (MemoryEffects::Location Loc : MemoryEffects::locations()) {
3625-
if (Loc != MemoryEffects::Location::InaccessibleMem)
3626-
MR |= IntInfo->ME.getModRef();
3627-
}
3619+
ModRefInfo MR = IntInfo->ME.getModRef();
36283620
// If this is an intrinsic, analyze it.
36293621
if (isRefSet(MR))
36303622
mayLoad = true; // These may load memory.

0 commit comments

Comments
 (0)