Eliminate a redundant check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-01-15 17:09:07 +00:00
parent f35fd547ac
commit 661d9c35b0

View 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: {