mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fold trivial two-operand tokenfactors where the operands are equal
immediately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
10b49489bf
commit
38ac062c2f
@ -2320,6 +2320,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, MVT VT,
|
||||
// Fold trivial token factors.
|
||||
if (N1.getOpcode() == ISD::EntryToken) return N2;
|
||||
if (N2.getOpcode() == ISD::EntryToken) return N1;
|
||||
if (N1 == N2) return N1;
|
||||
break;
|
||||
case ISD::CONCAT_VECTORS:
|
||||
// A CONCAT_VECTOR with all operands BUILD_VECTOR can be simplified to
|
||||
|
Loading…
Reference in New Issue
Block a user