summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-02 23:29:58 +0000
committerChris Lattner <sabre@nondot.org>2011-01-02 23:29:58 +0000
commit0844c76f9a49e5eac82c07e08943e20335424c0e (patch)
tree67f270a3c28bf8083038b8540d1fbc7bc4caecae /llvm/lib
parent8fac5db2514b7e1cc85b1d0da15140f7972d0173 (diff)
downloadbcm5719-llvm-0844c76f9a49e5eac82c07e08943e20335424c0e.tar.gz
bcm5719-llvm-0844c76f9a49e5eac82c07e08943e20335424c0e.zip
fix some pastos
llvm-svn: 122718
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/EarlyCSE.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
index 862e37ca28e..80daa5a4c66 100644
--- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
+++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@@ -86,9 +86,9 @@ unsigned DenseMapInfo<InstValue>::getHashValue(InstValue Val) {
else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Inst))
Res = getHash(BO->getOperand(0)) ^ (getHash(BO->getOperand(1)) << 1);
else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
- Res = getHash(CI->getOperand(0));
+ Res = getHash(GEP->getOperand(0));
for (unsigned i = 1, e = GEP->getNumOperands(); i != e; ++i)
- Res ^= getHash(CI->getOperand(i)) << i;
+ Res ^= getHash(GEP->getOperand(i)) << i;
} else if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
Res = getHash(CI->getOperand(0)) ^ (getHash(CI->getOperand(1)) << 1) ^
CI->getPredicate();
@@ -97,9 +97,9 @@ unsigned DenseMapInfo<InstValue>::getHashValue(InstValue Val) {
isa<InsertElementInst>(Inst) || isa<ShuffleVectorInst>(Inst) ||
isa<ExtractValueInst>(Inst) || isa<InsertValueInst>(Inst)) &&
"Unhandled instruction kind");
- Res = getHash(CI->getType()) << 4;
+ Res = getHash(Inst->getType()) << 4;
for (unsigned i = 0, e = Inst->getNumOperands(); i != e; ++i)
- Res ^= getHash(CI->getOperand(i)) << i;
+ Res ^= getHash(Inst->getOperand(i)) << i;
}
return (Res << 1) ^ Inst->getOpcode();
OpenPOWER on IntegriCloud