[llvm] [LLVM] remove redundant uses of dyn_cast (NFC) (PR #189105)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 14:52:01 PDT 2026
================
@@ -1390,7 +1390,7 @@ InductionDescriptor::InductionDescriptor(Value *Start, InductionKind K,
ConstantInt *InductionDescriptor::getConstIntStepValue() const {
if (isa<SCEVConstant>(Step))
- return dyn_cast<ConstantInt>(cast<SCEVConstant>(Step)->getValue());
+ return cast<SCEVConstant>(Step)->getValue();
----------------
nikic wrote:
Replace isa + cast with dyn_cast?
https://github.com/llvm/llvm-project/pull/189105
More information about the llvm-commits
mailing list