[llvm-commits] [llvm] r81124 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Duncan Sands
baldrick at free.fr
Sun Sep 6 11:03:33 PDT 2009
Author: baldrick
Date: Sun Sep 6 13:03:32 2009
New Revision: 81124
URL: http://llvm.org/viewvc/llvm-project?rev=81124&view=rev
Log:
Simplify. Testing shows that this is not equivalent to BBI = CR.CaseBB + 1.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=81124&r1=81123&r2=81124&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Sun Sep 6 13:03:32 2009
@@ -1715,8 +1715,7 @@
// Figure out which block is immediately after the current one.
MachineFunction::iterator BBI = CR.CaseBB;
-
- if (++BBI != FuncInfo.MF->end()) {}
+ ++BBI;
const BasicBlock *LLVMBB = CR.CaseBB->getBasicBlock();
@@ -1786,8 +1785,7 @@
// Figure out which block is immediately after the current one.
MachineFunction::iterator BBI = CR.CaseBB;
-
- if (++BBI != FuncInfo.MF->end()) {}
+ ++BBI;
Case& FrontCase = *CR.Range.first;
Case& BackCase = *(CR.Range.second-1);
More information about the llvm-commits
mailing list