diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-12 19:10:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-12 19:10:58 +0000 |
commit | c6646ebdb957a3c613d389be8b0135271b8b8ece (patch) | |
tree | 7d7da49c349072ce3f0f3bae74f696a1ea5f3e07 /lib/Transforms/Utils/ValueMapper.cpp | |
parent | b16689b647811d38ab5a5b990caed7f0014281c4 (diff) |
Remove use of ConstantExpr::getShift
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | lib/Transforms/Utils/ValueMapper.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 40dd58a146..acc433a6ed 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -83,12 +83,6 @@ Value *llvm::MapValue(const Value *V, std::map<const Value*, Value*> &VM) { for (unsigned i = 1, e = CE->getNumOperands(); i != e; ++i) Idx.push_back(cast<Constant>(MapValue(CE->getOperand(i), VM))); return VMSlot = ConstantExpr::getGetElementPtr(MV, Idx); - } else if (CE->getOpcode() == Instruction::Shl || - CE->getOpcode() == Instruction::Shr) { - assert(CE->getNumOperands() == 2 && "Must be a shift!"); - Constant *MV1 = cast<Constant>(MapValue(CE->getOperand(0), VM)); - Constant *MV2 = cast<Constant>(MapValue(CE->getOperand(1), VM)); - return VMSlot = ConstantExpr::getShift(CE->getOpcode(), MV1, MV2); } else { assert(CE->getNumOperands() == 2 && "Must be binary operator?"); Constant *MV1 = cast<Constant>(MapValue(CE->getOperand(0), VM)); |