[llvm] [VPlan] Improve cast code in VPlanRecipes (NFC) (PR #141240)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon May 26 22:41:09 PDT 2025
================
@@ -85,8 +85,8 @@ bool VPRecipeBase::mayWriteToMemory() const {
case VPWidenPHISC:
case VPWidenSC:
case VPWidenSelectSC: {
- const Instruction *I =
- dyn_cast_or_null<Instruction>(getVPSingleValue()->getUnderlyingValue());
+ const Instruction *I = dyn_cast_if_present<Instruction>(
----------------
dtcxzyw wrote:
`dyn_cast_or_null` has been deprecated.
https://github.com/llvm/llvm-project/pull/141240
More information about the llvm-commits
mailing list