[PATCH] D29214: [AMDGPU] Internalize non-kernel symbols

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 09:38:15 PST 2017


arsenm added a comment.

I don't see why the backend needs to do this. Why isn't internalize run when the library is linked?



================
Comment at: lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:225-226
+          if (const Function *F = dyn_cast<Function>(&GV)) {
+            if (F->isDeclaration())
+                return true;
+            switch (F->getCallingConv()) {
----------------
Shouldn't this be return false?


Repository:
  rL LLVM

https://reviews.llvm.org/D29214





More information about the llvm-commits mailing list