Fix a regression compiling 2005-05-11-Popcount-ffs-fls with the CBE,
authorChris Lattner <sabre@nondot.org>
Mon, 6 Aug 2007 16:36:18 +0000 (16:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Aug 2007 16:36:18 +0000 (16:36 +0000)
introduced by chandler's patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40864 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/IntrinsicLowering.cpp

index d92ee3fbbc1fa43d4b3ca2f6b3373c77ad880d5b..da6a876e83dd9dd00dd516e3997d606d3366e609 100644 (file)
@@ -231,7 +231,7 @@ static Value *LowerCTPOP(Value *V, Instruction *IP) {
     }
   }
 
-  return CastInst::createIntegerCast(Count, Type::Int32Ty, false, "ctpop", IP);
+  return Count;
 }
 
 /// LowerCTLZ - Emit the code to lower ctlz of V before the specified