Skip to content

Commit 5b2b656

Browse files
ayasin-afhahn
andcommitted
Avoid unnecessary dyn_cast of Instruction
Co-authored-by: Florian Hahn <flo@fhahn.com>
1 parent b7bca64 commit 5b2b656

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
@@ -4826,7 +4826,7 @@ getAppleRuntimeUnrollPreferences(Loop *L, ScalarEvolution &SE,
48264826
LoadedValuesPlus.insert(&I);
48274827
// Included 1st users of loaded values
48284828
for (auto *U : I.users()) {
4829-
auto *Inst = dyn_cast<Instruction>(U);
4829+
auto *Inst = cast<Instruction>(U);
48304830
if (!Inst || Inst->getParent() != BB)
48314831
continue;
48324832
LoadedValuesPlus.insert(U);

0 commit comments

Comments
 (0)