[PATCH] D72174: [amdgpu] Skip non-instruction values in CF user tracing.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 13:03:14 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3566c75ca82f: [amdgpu] Skip non-instruction values in CF user tracing. (authored by hliao).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72174/new/
https://reviews.llvm.org/D72174
Files:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Index: llvm/lib/Target/AMDGPU/SIISelLowering.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -11023,6 +11023,8 @@
}
static bool hasCFUser(const Value *V, SmallPtrSet<const Value *, 16> &Visited) {
+ if (!isa<Instruction>(V))
+ return false;
if (!Visited.insert(V).second)
return false;
bool Result = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72174.236116.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200103/4d98b680/attachment.bin>
More information about the llvm-commits
mailing list