[llvm-commits] [llvm] r92436 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Nick Lewycky
nicholas at mxc.ca
Sat Jan 2 16:55:32 PST 2010
Author: nicholas
Date: Sat Jan 2 18:55:31 2010
New Revision: 92436
URL: http://llvm.org/viewvc/llvm-project?rev=92436&view=rev
Log:
Cleanup.
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=92436&r1=92435&r2=92436&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Sat Jan 2 18:55:31 2010
@@ -7422,10 +7422,9 @@
Constant::getNullValue(Q->getType()));
Instruction *Op;
if (ICI.getPredicate() == ICmpInst::ICMP_EQ)
- Op = BinaryOperator::CreateAnd(ICIP, ICIQ, "");
+ Op = BinaryOperator::CreateAnd(ICIP, ICIQ);
else
- Op = BinaryOperator::CreateOr(ICIP, ICIQ, "");
- Op->takeName(&ICI);
+ Op = BinaryOperator::CreateOr(ICIP, ICIQ);
return Op;
}
break;
More information about the llvm-commits
mailing list