Eliminate a redundant check.

llvm-svn: 62264
This commit is contained in:
Evan Cheng 2009-01-15 17:09:07 +00:00
parent d504f9fe27
commit 340e5fe0a6

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