[llvm] [LoopInterchange] Remove unnecessary type check (NFC) (PR #202073)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 12:12:52 PDT 2026
https://github.com/kasuga-fj created https://github.com/llvm/llvm-project/pull/202073
As mentioned in #200913, there is an unnecessay type check. Let's remove it.
>From 9e96a945a0d17664d800781eea10ddfba2906429 Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga <kasuga.ryotaro at fujitsu.com>
Date: Sun, 7 Jun 2026 04:09:52 +0900
Subject: [PATCH] [LoopInterchange] Remove unnecessary type check (NFC)
As mentioned in #200913, there is an unnecessay type check. Let's remove
it.
---
llvm/lib/Transforms/Scalar/LoopInterchange.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
index b2e3bbe516ed8..e235249e83475 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -179,8 +179,6 @@ static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level,
for (BasicBlock *BB : L->blocks()) {
// Scan the BB and collect legal loads and stores.
for (Instruction &I : *BB) {
- if (!isa<Instruction>(I))
- return false;
NumInsts++;
if (auto *Ld = dyn_cast<LoadInst>(&I)) {
if (!Ld->isSimple())
More information about the llvm-commits
mailing list