Add the actual constant to the hash for ConstantPool nodes. Thanks to
Rafael Espindola for pointing this out.
llvm-svn: 29669
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp
index de5302a..b42c70b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGCSEMap.cpp
@@ -64,6 +64,7 @@
case ISD::TargetConstantPool:
AddInteger(cast<ConstantPoolSDNode>(N)->getAlignment());
AddInteger(cast<ConstantPoolSDNode>(N)->getOffset());
+ AddPointer(cast<ConstantPoolSDNode>(N)->get());
break;
}
}