[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp SelectionDAGISel.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Jun 29 08:57:31 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.120 -> 1.121
SelectionDAGISel.cpp updated: 1.62 -> 1.63
---
Log message:
tracking the instructions causing loads and stores provides more information than just the pointer being loaded or stored
---
Diffs of the changes: (+2 -4)
SelectionDAG.cpp | 2 --
SelectionDAGISel.cpp | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.120 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.121
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.120 Thu Jun 16 02:06:03 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Jun 29 10:57:19 2005
@@ -1394,8 +1394,6 @@
}
SDOperand SelectionDAG::getSrcValue(const Value *V, int Offset) {
- assert((!V || isa<PointerType>(V->getType())) &&
- "SrcValue is not a pointer?");
SDNode *&N = ValueNodes[std::make_pair(V, Offset)];
if (N) return SDOperand(N, 0);
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.62 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.63
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.62 Wed Jun 22 16:04:42 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Jun 29 10:57:19 2005
@@ -644,7 +644,7 @@
}
SDOperand L = DAG.getLoad(TLI.getValueType(I.getType()), Root, Ptr,
- DAG.getSrcValue(I.getOperand(0)));
+ DAG.getSrcValue(&I));
setValue(&I, L);
if (I.isVolatile())
@@ -659,7 +659,7 @@
SDOperand Src = getValue(SrcV);
SDOperand Ptr = getValue(I.getOperand(1));
DAG.setRoot(DAG.getNode(ISD::STORE, MVT::Other, getRoot(), Src, Ptr,
- DAG.getSrcValue(I.getOperand(1))));
+ DAG.getSrcValue(&I)));
}
void SelectionDAGLowering::visitCall(CallInst &I) {
More information about the llvm-commits
mailing list