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 | 6801f02557aca64a039c590265fec78392594cd4 (patch) | |
tree | 6e64e6204f5bdd0328b9a04b3a3340da5a892cfa /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
parent | 0c537dae55f3000adf98a6a158b01042780ebdfc (diff) | |
download | bcm5719-llvm-6801f02557aca64a039c590265fec78392594cd4.tar.gz bcm5719-llvm-6801f02557aca64a039c590265fec78392594cd4.zip |
This case isn't needed with recent changes to ConstantInt::get
llvm-svn: 32472
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 55f1c3c0ba3..f18d5f9a4f7 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/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); |