mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
Avoid creating MERGE_VALUES nodes for single values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
235fc57ef2
commit
b91c89dfb9
@ -1848,7 +1848,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
unsigned OpOpcode = Operand.Val->getOpcode();
|
||||
switch (Opcode) {
|
||||
case ISD::TokenFactor:
|
||||
return Operand; // Factor of one node? No factor.
|
||||
case ISD::MERGE_VALUES:
|
||||
return Operand; // Factor or merge of one node? No need.
|
||||
case ISD::FP_ROUND: assert(0 && "Invalid method to make FP_ROUND node");
|
||||
case ISD::FP_EXTEND:
|
||||
assert(MVT::isFloatingPoint(VT) &&
|
||||
|
Loading…
Reference in New Issue
Block a user