[PATCH] D81260: [AMDGPU] Skip processing intrinsics that do not become real instructions
Daniil Fukalov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 07:11:26 PDT 2020
dfukalov created this revision.
dfukalov added a reviewer: rampitec.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81260
Files:
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
@@ -1730,7 +1730,9 @@
// Ignore non-calls.
CallInst *CI = dyn_cast<CallInst>(I);
++I;
- if (!CI) continue;
+ // Ignore intrinsics that do not become real instructions.
+ if (!CI || isa<DbgInfoIntrinsic>(CI) || !CI->isLifetimeStartOrEnd())
+ continue;
// Ignore indirect calls.
Function *Callee = CI->getCalledFunction();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81260.268779.patch
Type: text/x-patch
Size: 589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/6845b85c/attachment.bin>
More information about the llvm-commits
mailing list