Skip to content

Commit f000a5b

Browse files
committed
allow load users from other blocks of the same loop
1 parent 6b46d38 commit f000a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4827,7 +4827,7 @@ getAppleRuntimeUnrollPreferences(Loop *L, ScalarEvolution &SE,
48274827
// Included 1st users of loaded values
48284828
for (auto *U : I.users()) {
48294829
auto *Inst = cast<Instruction>(U);
4830-
if (!Inst || Inst->getParent() != BB)
4830+
if (!Inst)
48314831
continue;
48324832
LoadedValuesPlus.insert(U);
48334833
}

0 commit comments

Comments
 (0)