[PATCH] D108300: [AMX] replace dyn_cast<> with isa<>, https://reviews.llvm.org/D107544 comment

Yaron Keren via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 18 07:22:34 PDT 2021


yaron.keren created this revision.
Herald added subscribers: pengfei, hiraditya.
yaron.keren requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108300

Files:
  llvm/lib/Target/X86/X86LowerAMXType.cpp


Index: llvm/lib/Target/X86/X86LowerAMXType.cpp
===================================================================
--- llvm/lib/Target/X86/X86LowerAMXType.cpp
+++ llvm/lib/Target/X86/X86LowerAMXType.cpp
@@ -912,7 +912,7 @@
   for (BasicBlock &BB : Func) {
     for (Instruction &I : BB) {
       if (isAMXCast(&I)) {
-        if (PHINode *PN = dyn_cast<PHINode>(I.getOperand(0)))
+        if (isa<PHINode>(I.getOperand(0)))
           PhiCastWorkList.push_back(&I);
       }
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108300.367202.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/afa528a2/attachment.bin>


More information about the llvm-commits mailing list