File tree 1 file changed +1
-9
lines changed
llvm/utils/TableGen/Common
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -3616,15 +3616,7 @@ class InstAnalyzer {
3616
3616
hasChain = true ;
3617
3617
3618
3618
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 ();
3628
3620
// If this is an intrinsic, analyze it.
3629
3621
if (isRefSet (MR))
3630
3622
mayLoad = true ; // These may load memory.
You can’t perform that action at this time.
0 commit comments