mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
silence warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2259,13 +2259,11 @@ public:
|
||||
unsigned OpNo = 0;
|
||||
bool NodeHasChain = NodeHasProperty (N, SDNPHasChain, ISE);
|
||||
bool HasChain = PatternHasProperty(N, SDNPHasChain, ISE);
|
||||
bool HasOutFlag = PatternHasProperty(N, SDNPOutFlag, ISE);
|
||||
bool EmittedUseCheck = false;
|
||||
if (HasChain) {
|
||||
if (NodeHasChain)
|
||||
OpNo = 1;
|
||||
if (!isRoot) {
|
||||
const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
|
||||
// Multiple uses of actual result?
|
||||
emitCheck(RootName + ".hasOneUse()");
|
||||
EmittedUseCheck = true;
|
||||
@@ -2329,7 +2327,6 @@ public:
|
||||
(PatternHasProperty(N, SDNPInFlag, ISE) ||
|
||||
PatternHasProperty(N, SDNPOptInFlag, ISE) ||
|
||||
PatternHasProperty(N, SDNPOutFlag, ISE))) {
|
||||
const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
|
||||
if (!EmittedUseCheck) {
|
||||
// Multiple uses of actual result?
|
||||
emitCheck(RootName + ".hasOneUse()");
|
||||
@@ -3318,8 +3315,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
||||
PatternsByOpcode[Node->getOperator()].push_back(&PatternsToMatch[i]);
|
||||
} else {
|
||||
const ComplexPattern *CP;
|
||||
if (IntInit *II =
|
||||
dynamic_cast<IntInit*>(Node->getLeafValue())) {
|
||||
if (dynamic_cast<IntInit*>(Node->getLeafValue())) {
|
||||
PatternsByOpcode[getSDNodeNamed("imm")].push_back(&PatternsToMatch[i]);
|
||||
} else if ((CP = NodeGetComplexPattern(Node, *this))) {
|
||||
std::vector<Record*> OpNodes = CP->getRootNodes();
|
||||
|
Reference in New Issue
Block a user