forked from OSchip/llvm-project
NVPTX: Delete dead code
`MDNode` does not inherit from `User`, and it never has a name. llvm-svn: 223198
This commit is contained in:
parent
369308061b
commit
c280ff0e47
|
@ -793,11 +793,6 @@ static bool usedInOneFunc(const User *U, Function const *&oneFunc) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (const MDNode *md = dyn_cast<MDNode>(U))
|
||||
if (md->hasName() && ((md->getName().str() == "llvm.dbg.gv") ||
|
||||
(md->getName().str() == "llvm.dbg.sp")))
|
||||
return true;
|
||||
|
||||
for (const User *UU : U->users())
|
||||
if (usedInOneFunc(UU, oneFunc) == false)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue