mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
CALLSEQ_START/END nodes don't get memoized, do not add them in when
replaceAllUses'ing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72d32c222c
commit
c85a9f37e9
@ -387,6 +387,10 @@ void SelectionDAG::RemoveNodeFromCSEMaps(SDNode *N) {
|
|||||||
///
|
///
|
||||||
SDNode *SelectionDAG::AddNonLeafNodeToCSEMaps(SDNode *N) {
|
SDNode *SelectionDAG::AddNonLeafNodeToCSEMaps(SDNode *N) {
|
||||||
assert(N->getNumOperands() && "This is a leaf node!");
|
assert(N->getNumOperands() && "This is a leaf node!");
|
||||||
|
if (N->getOpcode() == ISD::CALLSEQ_START ||
|
||||||
|
N->getOpcode() == ISD::CALLSEQ_END)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (N->getOpcode() == ISD::LOAD) {
|
if (N->getOpcode() == ISD::LOAD) {
|
||||||
SDNode *&L = Loads[std::make_pair(N->getOperand(1),
|
SDNode *&L = Loads[std::make_pair(N->getOperand(1),
|
||||||
std::make_pair(N->getOperand(0),
|
std::make_pair(N->getOperand(0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user