Skip to content

Commit 5ef5beb

Browse files
committed
!fixup remove unneeded code
1 parent 4c6db19 commit 5ef5beb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4031,8 +4031,6 @@ getAppleRuntimeUnrollPreferences(Loop *L, ScalarEvolution &SE,
40314031
if (L->getHeader() != L->getLoopLatch() || Size > 8)
40324032
return;
40334033

4034-
SmallPtrSet<const SCEV *, 8> LoadPtrs;
4035-
SmallPtrSet<const SCEV *, 8> StorePtrs;
40364034
SmallPtrSet<Value *, 8> LoadedValues;
40374035
SmallVector<StoreInst *> Stores;
40384036
for (auto *BB : L->blocks()) {
@@ -4043,13 +4041,10 @@ getAppleRuntimeUnrollPreferences(Loop *L, ScalarEvolution &SE,
40434041
const SCEV *PtrSCEV = SE.getSCEV(Ptr);
40444042
if (SE.isLoopInvariant(PtrSCEV, L))
40454043
continue;
4046-
if (isa<LoadInst>(&I)) {
4047-
LoadPtrs.insert(PtrSCEV);
4044+
if (isa<LoadInst>(&I))
40484045
LoadedValues.insert(&I);
4049-
} else {
4046+
else
40504047
Stores.push_back(cast<StoreInst>(&I));
4051-
StorePtrs.insert(PtrSCEV);
4052-
}
40534048
}
40544049
}
40554050

0 commit comments

Comments
 (0)