[llvm] [LoopIdiom] Strip dead check in processLoopMemSet (NFC) (PR #141100)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 09:50:39 PDT 2025
https://github.com/artagnon created https://github.com/llvm/llvm-project/pull/141100
None
>From 98625d42aa1a9e36d85585abebf050524161e2d4 Mon Sep 17 00:00:00 2001
From: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
Date: Thu, 22 May 2025 17:47:00 +0100
Subject: [PATCH] [LoopIdiom] Strip dead check in processLoopMemSet (NFC)
---
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 0eaed2eddcdbb..95ac0a61b34bd 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -867,8 +867,6 @@ bool LoopIdiomRecognize::processLoopMemSet(MemSetInst *MSI,
const SCEV *PointerStrideSCEV = Ev->getOperand(1);
const SCEV *MemsetSizeSCEV = SE->getSCEV(MSI->getLength());
- if (!PointerStrideSCEV || !MemsetSizeSCEV)
- return false;
bool IsNegStride = false;
const bool IsConstantSize = isa<ConstantInt>(MSI->getLength());
More information about the llvm-commits
mailing list