[PATCH] D137161: Remove redundant check
Hugh Delaney via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 06:46:47 PDT 2022
hdelan created this revision.
Herald added subscribers: mattd, gchakrabarti, asavonic, hiraditya.
Herald added a project: All.
hdelan requested review of this revision.
Herald added subscribers: llvm-commits, jholewinski.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137161
Files:
llvm/lib/Target/NVPTX/NVVMReflect.cpp
Index: llvm/lib/Target/NVPTX/NVVMReflect.cpp
===================================================================
--- llvm/lib/Target/NVPTX/NVVMReflect.cpp
+++ llvm/lib/Target/NVPTX/NVVMReflect.cpp
@@ -40,7 +40,6 @@
#include <sstream>
#include <string>
#define NVVM_REFLECT_FUNCTION "__nvvm_reflect"
-#define NVVM_REFLECT_LLVM_INTRINSIC_NAME "llvm.nvvm.reflect"
using namespace llvm;
@@ -120,7 +119,6 @@
continue;
Function *Callee = Call->getCalledFunction();
if (!Callee || (Callee->getName() != NVVM_REFLECT_FUNCTION &&
- Callee->getName() != NVVM_REFLECT_LLVM_INTRINSIC_NAME &&
Callee->getIntrinsicID() != Intrinsic::nvvm_reflect))
continue;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137161.472282.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221101/e5c60d1b/attachment.bin>
More information about the llvm-commits
mailing list