[PATCH] D46992: [AMDGPU] Add perf hints to functions

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 18 09:43:10 PDT 2018


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUPerfHint.cpp:260-261
+      } else if (CallInst *CI = dyn_cast<CallInst>(&I)) {
+        Function *Callee = CI->getCalledFunction();
+        if (Callee == NULL  || Callee->isDeclaration()) {
+          ++FI.InstCount;
----------------
arsenm wrote:
> !Callee
This file does not exist in the patch. You seem to comment on the old version somehow.


https://reviews.llvm.org/D46992





More information about the llvm-commits mailing list