From 661d9c35b0af2286f15d7fdad6ecb62ac3d7c741 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 15 Jan 2009 17:09:07 +0000 Subject: [PATCH] Eliminate a redundant check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62264 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index d6419d690fd..31f82ad1964 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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: { -- 2.34.1