NVPTX: Delete dead code

`MDNode` does not inherit from `User`, and it never has a name.

llvm-svn: 223198
This commit is contained in:
Duncan P. N. Exon Smith 2014-12-03 04:13:23 +00:00
parent 369308061b
commit c280ff0e47
1 changed files with 0 additions and 5 deletions

View File

@ -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;