- Rename ConstantGenericIntegral -> ConstantIntegral
authorChris Lattner <sabre@nondot.org>
Tue, 13 Aug 2002 17:50:24 +0000 (17:50 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Aug 2002 17:50:24 +0000 (17:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3300 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 20c7dbe8d3fc04e09f62e0623c4f6008b93bfcc0..e9344c17ec4ff42cf2f0a9e6267f479b0684e324 100644 (file)
@@ -288,7 +288,7 @@ Instruction *InstCombiner::visitAnd(BinaryOperator &I) {
     return ReplaceInstUsesWith(I, Op1);
 
   // and X, -1 == X
-  if (ConstantGenericIntegral *RHS = dyn_cast<ConstantGenericIntegral>(Op1))
+  if (ConstantIntegral *RHS = dyn_cast<ConstantIntegral>(Op1))
     if (RHS->isAllOnesValue())
       return ReplaceInstUsesWith(I, Op0);
 
@@ -306,7 +306,7 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
     return ReplaceInstUsesWith(I, Op0);
 
   // or X, -1 == -1
-  if (ConstantGenericIntegral *RHS = dyn_cast<ConstantGenericIntegral>(Op1))
+  if (ConstantIntegral *RHS = dyn_cast<ConstantIntegral>(Op1))
     if (RHS->isAllOnesValue())
       return ReplaceInstUsesWith(I, Op1);
 
@@ -323,7 +323,7 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
   if (Op0 == Op1)
     return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType()));
 
-  if (ConstantGenericIntegral *Op1C = dyn_cast<ConstantGenericIntegral>(Op1)) {
+  if (ConstantIntegral *Op1C = dyn_cast<ConstantIntegral>(Op1)) {
     // xor X, 0 == X
     if (Op1C->isNullValue())
       return ReplaceInstUsesWith(I, Op0);