From: Kazu Hirata Date: Thu, 31 Dec 2020 01:45:37 +0000 (-0800) Subject: [PGO] Use isa instead of dyn_cast (NFC) X-Git-Tag: llvmorg-13-init~2341 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95ea86587c54240b3f1b7ed5a18d2f3660cb7573;p=platform%2Fupstream%2Fllvm.git [PGO] Use isa instead of dyn_cast (NFC) --- diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index 480de54..9efc7d1 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -269,7 +269,7 @@ public: // FIXME: add other heuristics to detect long running loops. if (SkipRetExitBlock) { for (auto BB : ExitBlocks) - if (dyn_cast(BB->getTerminator()) != nullptr) + if (isa(BB->getTerminator())) return false; } diff --git a/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp b/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp index 7acbdb9..55a93b6 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp @@ -254,7 +254,7 @@ public: LibFunc Func; if (TLI.getLibFunc(CI, Func) && (Func == LibFunc_memcmp || Func == LibFunc_bcmp) && - !dyn_cast(CI.getArgOperand(2))) { + !isa(CI.getArgOperand(2))) { WorkList.push_back(MemOp(&CI)); } }