diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-15 17:09:07 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-15 17:09:07 +0000 |
commit | 7bb0d950ca442cefaea4f764f9339f695b9e0788 (patch) | |
tree | a0a44b1a816ef4b99b3be3cff0c8e7f556f5b4f1 | |
parent | 9ca34ab6bd48546f52bfcf7cb7c4f2d1b787405f (diff) | |
download | external_llvm-7bb0d950ca442cefaea4f764f9339f695b9e0788.zip external_llvm-7bb0d950ca442cefaea4f764f9339f695b9e0788.tar.gz external_llvm-7bb0d950ca442cefaea4f764f9339f695b9e0788.tar.bz2 |
Eliminate a redundant check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62264 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index d6419d6..31f82ad 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: { |