diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-12 05:19:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-12 05:19:46 +0000 |
commit | 3bb7e3f3bae7f5004e82b9af0a6d713ddef4be8f (patch) | |
tree | f83368f6493df57f692431bda0d47e4308312cc7 /lib/CodeGen/IntrinsicLowering.cpp | |
parent | ddc94019916fbe4d3fff915e6002c39c63488a44 (diff) |
This case isn't needed with recent changes to ConstantInt::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | lib/CodeGen/IntrinsicLowering.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index 55f1c3c0ba..f18d5f9a4f 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -238,9 +238,7 @@ static Value *LowerCTPOP(Value *V, Instruction *IP) { unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); for (unsigned i = 1, ct = 0; i != BitSize; i <<= 1, ++ct) { - Value *MaskCst = - ConstantExpr::getTruncOrBitCast(ConstantInt::get(Type::ULongTy, MaskValues[ct]), - V->getType()); + Value *MaskCst = ConstantInt::get(V->getType(), MaskValues[ct]); Value *LHS = BinaryOperator::createAnd(V, MaskCst, "cppop.and1", IP); Value *VShift = new ShiftInst(Instruction::LShr, V, ConstantInt::get(Type::UByteTy, i), "ctpop.sh", IP); |