summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-14 20:12:44 +0000
committerChris Lattner <sabre@nondot.org>2006-08-14 20:12:44 +0000
commit8e37283d8bff66eea44af49ba87b50000107c853 (patch)
tree3e8c6a2c4ee38aea4e0493009c867347440991a5 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parenta496ec35ed53139e6fda3595a2efadfce0d90822 (diff)
downloadbcm5719-llvm-8e37283d8bff66eea44af49ba87b50000107c853.tar.gz
bcm5719-llvm-8e37283d8bff66eea44af49ba87b50000107c853.zip
Add the actual constant to the hash for ConstantPool nodes. Thanks to
Rafael Espindola for pointing this out. llvm-svn: 29669
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 72a7d330016..6fd8ba2a9ec 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -583,6 +583,7 @@ SDOperand SelectionDAG::getConstantPool(Constant *C, MVT::ValueType VT,
SelectionDAGCSEMap::NodeID ID(Opc, getNodeValueTypes(VT));
ID.AddInteger(Alignment);
ID.AddInteger(Offset);
+ ID.AddPointer(C);
void *IP = 0;
if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))
return SDOperand(E, 0);
OpenPOWER on IntegriCloud