[llvm-commits] [llvm] r63214 - /llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
Dan Gohman
gohman at apple.com
Wed Jan 28 10:03:10 PST 2009
Author: djg
Date: Wed Jan 28 12:03:09 2009
New Revision: 63214
URL: http://llvm.org/viewvc/llvm-project?rev=63214&view=rev
Log:
Delete unnecessary elses.
Modified:
llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
Modified: llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h?rev=63214&r1=63213&r2=63214&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h Wed Jan 28 12:03:09 2009
@@ -31,9 +31,9 @@
static bool IsChainCompatible(SDNode *Chain, SDNode *Op) {
if (Chain->getOpcode() == ISD::EntryToken)
return true;
- else if (Chain->getOpcode() == ISD::TokenFactor)
+ if (Chain->getOpcode() == ISD::TokenFactor)
return false;
- else if (Chain->getNumOperands() > 0) {
+ if (Chain->getNumOperands() > 0) {
SDValue C0 = Chain->getOperand(0);
if (C0.getValueType() == MVT::Other)
return C0.getNode() != Op && IsChainCompatible(C0.getNode(), Op);
More information about the llvm-commits
mailing list