[llvm-commits] [llvm] r62264 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Evan Cheng
evan.cheng at apple.com
Thu Jan 15 09:09:08 PST 2009
Author: evancheng
Date: Thu Jan 15 11:09:07 2009
New Revision: 62264
URL: http://llvm.org/viewvc/llvm-project?rev=62264&view=rev
Log:
Eliminate a redundant check.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=62264&r1=62263&r2=62264&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Thu Jan 15 11:09:07 2009
@@ -7581,8 +7581,7 @@
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: {
More information about the llvm-commits
mailing list