From 67678c8307bca7fa867059669ead579215cda732 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Jan 2011 23:29:58 +0000 Subject: fix some pastos git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122718 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/EarlyCSE.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Transforms/Scalar/EarlyCSE.cpp') diff --git a/lib/Transforms/Scalar/EarlyCSE.cpp b/lib/Transforms/Scalar/EarlyCSE.cpp index 862e37ca28..80daa5a4c6 100644 --- a/lib/Transforms/Scalar/EarlyCSE.cpp +++ b/lib/Transforms/Scalar/EarlyCSE.cpp @@ -86,9 +86,9 @@ unsigned DenseMapInfo::getHashValue(InstValue Val) { else if (BinaryOperator *BO = dyn_cast(Inst)) Res = getHash(BO->getOperand(0)) ^ (getHash(BO->getOperand(1)) << 1); else if (GetElementPtrInst *GEP = dyn_cast(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(Inst)) { Res = getHash(CI->getOperand(0)) ^ (getHash(CI->getOperand(1)) << 1) ^ CI->getPredicate(); @@ -97,9 +97,9 @@ unsigned DenseMapInfo::getHashValue(InstValue Val) { isa(Inst) || isa(Inst) || isa(Inst) || isa(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(); -- cgit v1.2.3