Skip to content

Commit bcdb938

Browse files
committed
[LoopInterchange] Require unordered load/store
To match DependenceAnalysis' handling of unordered loads/stores, permit exactly this condition in LoopInterchange.
1 parent 7f223d1 commit bcdb938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level,
141141
if (!isa<Instruction>(I))
142142
return false;
143143
if (auto *Ld = dyn_cast<LoadInst>(&I)) {
144-
if (!Ld->isSimple())
144+
if (!Ld->isUnordered())
145145
return false;
146146
MemInstr.push_back(&I);
147147
} else if (auto *St = dyn_cast<StoreInst>(&I)) {
148-
if (!St->isSimple())
148+
if (!St->isUnordered())
149149
return false;
150150
MemInstr.push_back(&I);
151151
}

0 commit comments

Comments
 (0)