mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
remove dead code. This is never generated for any targets in mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e39650a805
commit
6e6975d419
@ -624,21 +624,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't fold any node which reads or writes a flag and has multiple uses.
|
|
||||||
// FIXME: We really need to separate the concepts of flag and "glue". Those
|
|
||||||
// real flag results, e.g. X86CMP output, can have multiple uses.
|
|
||||||
// FIXME: If the optional incoming flag does not exist. Then it is ok to
|
|
||||||
// fold it.
|
|
||||||
if (!isRoot &&
|
|
||||||
(N->TreeHasProperty(SDNPInFlag, CGP) ||
|
|
||||||
N->TreeHasProperty(SDNPOptInFlag, CGP) ||
|
|
||||||
N->TreeHasProperty(SDNPOutFlag, CGP))) {
|
|
||||||
if (!EmittedUseCheck) {
|
|
||||||
// Multiple uses of actual result?
|
|
||||||
emitCheck(getValueName(RootName) + ".hasOneUse()");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// If there are node predicates for this, emit the calls.
|
// If there are node predicates for this, emit the calls.
|
||||||
for (unsigned i = 0, e = N->getPredicateFns().size(); i != e; ++i)
|
for (unsigned i = 0, e = N->getPredicateFns().size(); i != e; ++i)
|
||||||
emitCheck(N->getPredicateFns()[i] + "(" + getNodeName(RootName) + ")");
|
emitCheck(N->getPredicateFns()[i] + "(" + getNodeName(RootName) + ")");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user