mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fold trivial two-operand tokenfactors where the operands are equal
immediately. llvm-svn: 56921
This commit is contained in:
parent
8ba73d6d60
commit
6466b44315
@ -2320,6 +2320,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, MVT VT,
|
|||||||
// Fold trivial token factors.
|
// Fold trivial token factors.
|
||||||
if (N1.getOpcode() == ISD::EntryToken) return N2;
|
if (N1.getOpcode() == ISD::EntryToken) return N2;
|
||||||
if (N2.getOpcode() == ISD::EntryToken) return N1;
|
if (N2.getOpcode() == ISD::EntryToken) return N1;
|
||||||
|
if (N1 == N2) return N1;
|
||||||
break;
|
break;
|
||||||
case ISD::CONCAT_VECTORS:
|
case ISD::CONCAT_VECTORS:
|
||||||
// A CONCAT_VECTOR with all operands BUILD_VECTOR can be simplified to
|
// A CONCAT_VECTOR with all operands BUILD_VECTOR can be simplified to
|
||||||
|
Loading…
Reference in New Issue
Block a user