mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
NVPTX: Delete dead code
`MDNode` does not inherit from `User`, and it never has a name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4cb89023d
commit
2212800542
@ -793,11 +793,6 @@ static bool usedInOneFunc(const User *U, Function const *&oneFunc) {
|
|||||||
return false;
|
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())
|
for (const User *UU : U->users())
|
||||||
if (usedInOneFunc(UU, oneFunc) == false)
|
if (usedInOneFunc(UU, oneFunc) == false)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user