Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.589 -> 1.590 --- Log message: Remove unnecessary boolean type check. --- Diffs of the changes: (+1 -2) InstructionCombining.cpp | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.589 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.590 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.589 Thu Jan 11 06:24:14 2007 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Jan 11 08:38:17 2007 @@ -6553,8 +6553,7 @@ // select true, X, Y -> X // select false, X, Y -> Y if (ConstantInt *C = dyn_cast<ConstantInt>(CondVal)) - if (C->getType() == Type::BoolTy) - return ReplaceInstUsesWith(SI, C->getBoolValue() ? TrueVal : FalseVal); + return ReplaceInstUsesWith(SI, C->getBoolValue() ? TrueVal : FalseVal); // select C, X, X -> X if (TrueVal == FalseVal) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits