mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
Also checks for noResults field.
llvm-svn: 29235
This commit is contained in:
parent
56434b7578
commit
94c6f2c3b5
@ -742,8 +742,11 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
||||
|
||||
assert(NumResults <= 1 &&
|
||||
"Only supports zero or one result instrs!");
|
||||
|
||||
CodeGenInstruction &InstInfo =
|
||||
ISE.getTargetInfo().getInstruction(getOperator()->getName());
|
||||
// Apply the result type to the node
|
||||
if (NumResults == 0) {
|
||||
if (NumResults == 0 || InstInfo.noResults) { // FIXME: temporary hack...
|
||||
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
||||
} else {
|
||||
Record *ResultNode = Inst.getResult(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user