mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
remove now dead code and fixme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e6975d419
commit
e2de49d9a1
@ -561,7 +561,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P,
|
|||||||
unsigned OpNo = 0;
|
unsigned OpNo = 0;
|
||||||
bool NodeHasChain = N->NodeHasProperty(SDNPHasChain, CGP);
|
bool NodeHasChain = N->NodeHasProperty(SDNPHasChain, CGP);
|
||||||
bool HasChain = N->TreeHasProperty(SDNPHasChain, CGP);
|
bool HasChain = N->TreeHasProperty(SDNPHasChain, CGP);
|
||||||
bool EmittedUseCheck = false;
|
|
||||||
if (HasChain) {
|
if (HasChain) {
|
||||||
if (NodeHasChain)
|
if (NodeHasChain)
|
||||||
OpNo = 1;
|
OpNo = 1;
|
||||||
@ -571,7 +570,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P,
|
|||||||
std::string ParentName(RootName.begin(), RootName.end()-1);
|
std::string ParentName(RootName.begin(), RootName.end()-1);
|
||||||
emitCheck("IsProfitableToFold(" + getValueName(RootName) +
|
emitCheck("IsProfitableToFold(" + getValueName(RootName) +
|
||||||
", " + getNodeName(ParentName) + ", N)");
|
", " + getNodeName(ParentName) + ", N)");
|
||||||
EmittedUseCheck = true;
|
|
||||||
if (NodeHasChain) {
|
if (NodeHasChain) {
|
||||||
// If the immediate use can somehow reach this node through another
|
// If the immediate use can somehow reach this node through another
|
||||||
// path, then can't fold it either or it will create a cycle.
|
// path, then can't fold it either or it will create a cycle.
|
||||||
|
@ -243,8 +243,6 @@ void MatcherGen::EmitOperatorMatchCode(const TreePatternNode *N,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Handle EmittedUseCheck & Flags & .hasOneUse()
|
|
||||||
|
|
||||||
for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) {
|
for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) {
|
||||||
// Get the code suitable for matching this child. Move to the child, check
|
// Get the code suitable for matching this child. Move to the child, check
|
||||||
// it then move back to the parent.
|
// it then move back to the parent.
|
||||||
|
Loading…
Reference in New Issue
Block a user