diff --git a/llvm/lib/Target/X86/X86LowerAMXType.cpp b/llvm/lib/Target/X86/X86LowerAMXType.cpp --- a/llvm/lib/Target/X86/X86LowerAMXType.cpp +++ b/llvm/lib/Target/X86/X86LowerAMXType.cpp @@ -488,7 +488,7 @@ // Get tile shape. IntrinsicInst *II = nullptr; if (IsPHI) { - Value *PhiOp = dyn_cast(V)->getIncomingValue(0); + Value *PhiOp = cast(V)->getIncomingValue(0); II = cast(PhiOp); } else { II = cast(V);