mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
simplify this code, the # of sets in the pattern for an instruction
shouldn't change this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1145,8 +1145,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
|||||||
CodeGenInstruction &InstInfo =
|
CodeGenInstruction &InstInfo =
|
||||||
CDP.getTargetInfo().getInstruction(getOperator()->getName());
|
CDP.getTargetInfo().getInstruction(getOperator()->getName());
|
||||||
// Apply the result type to the node
|
// Apply the result type to the node
|
||||||
if (NumResults == 0 ||
|
if (InstInfo.NumDefs == 0) { // # of elements in (outs) list
|
||||||
InstInfo.NumDefs == 0) {
|
|
||||||
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
||||||
} else {
|
} else {
|
||||||
Record *ResultNode = Inst.getResult(0);
|
Record *ResultNode = Inst.getResult(0);
|
||||||
|
Reference in New Issue
Block a user