[llvm] 02b26ec - [LoopInterchange] Remove unnecessary type check (NFC) (#202073)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 13:34:05 PDT 2026
Author: Ryotaro Kasuga
Date: 2026-06-06T20:34:00Z
New Revision: 02b26ec29b0a9d823dbfd7a7aa15570043013b57
URL: https://github.com/llvm/llvm-project/commit/02b26ec29b0a9d823dbfd7a7aa15570043013b57
DIFF: https://github.com/llvm/llvm-project/commit/02b26ec29b0a9d823dbfd7a7aa15570043013b57.diff
LOG: [LoopInterchange] Remove unnecessary type check (NFC) (#202073)
As mentioned in #200913, there is an unnecessay type check. Let's remove
it.
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopInterchange.cpp
Removed:
################################################################################
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