[llvm-commits] [llvm] r131152 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Stuart Hastings
stuart at apple.com
Tue May 10 14:20:03 PDT 2011
Author: stuart
Date: Tue May 10 16:20:03 2011
New Revision: 131152
URL: http://llvm.org/viewvc/llvm-project?rev=131152&view=rev
Log:
Correctly walk through nested and adjacent CALLSEQ_START nodes. No
test case; I've only seen this on a release branch, and I can't get it
to reproduce on trunk. rdar://problem/7662569
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=131152&r1=131151&r2=131152&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue May 10 16:20:03 2011
@@ -324,6 +324,7 @@
case ISD::CALLSEQ_START:
if (!nested)
return Node;
+ Node = Node->getOperand(0).getNode();
nested--;
break;
case ISD::CALLSEQ_END:
@@ -331,7 +332,7 @@
break;
}
}
- return 0;
+ return (Node->getOpcode() == ISD::CALLSEQ_START) ? Node : 0;
}
/// LegalizeAllNodesNotLeadingTo - Recursively walk the uses of N, looking to
More information about the llvm-commits
mailing list