Eliminate a redundant check.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 15 Jan 2009 17:09:07 +0000 (17:09 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 15 Jan 2009 17:09:07 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62264 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index d6419d690fdc4e1a584752fdc6cc08def481de08..31f82ad196461fea3c67f0a299ea86d1872f8a04 100644 (file)
@@ -7581,8 +7581,7 @@ InstCombiner::CanEvaluateInDifferentType(Value *V, const IntegerType *Ty,
       return true;
 
     // sext (zext ty1), ty2 -> zext ty2
-    if (CastOpc == Instruction::SExt && Opc == Instruction::ZExt &&
-        I->hasOneUse())
+    if (CastOpc == Instruction::SExt && Opc == Instruction::ZExt)
       return true;
     break;
   case Instruction::Select: {