projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f35fd54
)
Eliminate a redundant check.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 15 Jan 2009 17:09:07 +0000
(17:09 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 15 Jan 2009 17:09:07 +0000
(17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62264
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index d6419d690fdc4e1a584752fdc6cc08def481de08..31f82ad196461fea3c67f0a299ea86d1872f8a04 100644
(file)
--- 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: {