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 | ff716cb34227151b67f9ef604d8f726ce455ec8a (patch) | |
| tree | 843f4ca58cd7a4f2099f10c9bfb67c7f2d065d50 /llvm/lib | |
| parent | 60e19a46f2888a2247004e1da168525038a0848e (diff) | |
| download | bcm5719-llvm-ff716cb34227151b67f9ef604d8f726ce455ec8a.tar.gz bcm5719-llvm-ff716cb34227151b67f9ef604d8f726ce455ec8a.zip | |
Eliminate a redundant check.
llvm-svn: 62264
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index d6419d690fd..31f82ad1964 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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: { |

