diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-22 04:01:18 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-22 04:01:18 +0000 |
commit | 774511633d24db71d46055b52390b17c37942b48 (patch) | |
tree | 6af36d99c62d03212fa6436561141803ca28fbd3 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 1fabffbf37f58c1c4a500a3b3f5c7595b6a404f9 (diff) | |
download | bcm5719-llvm-774511633d24db71d46055b52390b17c37942b48.tar.gz bcm5719-llvm-774511633d24db71d46055b52390b17c37942b48.zip |
Convert tabs to spaces
llvm-svn: 21439
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 62376e54709..1697ad39fff 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -418,7 +418,7 @@ void SelectionDAGLowering::visitBr(BranchInst &I) { // If this is not a fall-through branch, emit the branch. if (Succ0MBB != NextBlock) DAG.setRoot(DAG.getNode(ISD::BR, MVT::Other, getRoot(), - DAG.getBasicBlock(Succ0MBB))); + DAG.getBasicBlock(Succ0MBB))); } else { MachineBasicBlock *Succ1MBB = FuncInfo.MBBMap[I.getSuccessor(1)]; @@ -427,14 +427,14 @@ void SelectionDAGLowering::visitBr(BranchInst &I) { // If the condition is false, fall through. This means we should branch // if the condition is true to Succ #0. DAG.setRoot(DAG.getNode(ISD::BRCOND, MVT::Other, getRoot(), - Cond, DAG.getBasicBlock(Succ0MBB))); + Cond, DAG.getBasicBlock(Succ0MBB))); } else if (Succ0MBB == NextBlock) { // If the condition is true, fall through. This means we should branch if // the condition is false to Succ #1. Invert the condition first. SDOperand True = DAG.getConstant(1, Cond.getValueType()); Cond = DAG.getNode(ISD::XOR, Cond.getValueType(), Cond, True); DAG.setRoot(DAG.getNode(ISD::BRCOND, MVT::Other, getRoot(), - Cond, DAG.getBasicBlock(Succ1MBB))); + Cond, DAG.getBasicBlock(Succ1MBB))); } else { std::vector<SDOperand> Ops; Ops.push_back(getRoot()); @@ -537,7 +537,7 @@ void SelectionDAGLowering::visitGetElementPtr(User &I) { // N = N + Offset uint64_t Offset = TD.getStructLayout(StTy)->MemberOffsets[Field]; N = DAG.getNode(ISD::ADD, N.getValueType(), N, - getIntPtrConstant(Offset)); + getIntPtrConstant(Offset)); } Ty = StTy->getElementType(Field); } else { @@ -558,7 +558,6 @@ void SelectionDAGLowering::visitGetElementPtr(User &I) { IdxN = DAG.getNode(ISD::TRUNCATE, Scale.getValueType(), IdxN); IdxN = DAG.getNode(ISD::MUL, N.getValueType(), IdxN, Scale); - N = DAG.getNode(ISD::ADD, N.getValueType(), N, IdxN); } } |