mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
Fix a nasty bug from a previous patch of mine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b20c318df0
commit
f07d023dd9
@ -1042,7 +1042,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
SDNode *N;
|
||||
if (VT != MVT::Flag) { // Don't CSE flag producing nodes
|
||||
SDNode *&E = UnaryOps[std::make_pair(Opcode, std::make_pair(Operand, VT))];
|
||||
if (E) return SDOperand(N, 0);
|
||||
if (E) return SDOperand(E, 0);
|
||||
E = N = new SDNode(Opcode, Operand);
|
||||
} else {
|
||||
N = new SDNode(Opcode, Operand);
|
||||
|
Loading…
x
Reference in New Issue
Block a user