[llvm-commits] [llvm] r124302 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Devang Patel
dpatel at apple.com
Wed Jan 26 10:55:05 PST 2011
Author: dpatel
Date: Wed Jan 26 12:55:05 2011
New Revision: 124302
URL: http://llvm.org/viewvc/llvm-project?rev=124302&view=rev
Log:
While legalizing SDValues do not drop SDDbgValues, trasfer them to new legal nodes.
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=124302&r1=124301&r2=124302&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Wed Jan 26 12:55:05 2011
@@ -87,6 +87,9 @@
// If someone requests legalization of the new node, return itself.
if (From != To)
LegalizedNodes.insert(std::make_pair(To, To));
+
+ // Transfer SDDbgValues.
+ DAG.TransferDbgValues(From, To);
}
public:
More information about the llvm-commits
mailing list