[llvm-commits] [llvm] r57371 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Chris Lattner
sabre at nondot.org
Fri Oct 10 17:08:03 PDT 2008
Author: lattner
Date: Fri Oct 10 19:08:02 2008
New Revision: 57371
URL: http://llvm.org/viewvc/llvm-project?rev=57371&view=rev
Log:
simplify comparison
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=57371&r1=57370&r2=57371&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Fri Oct 10 19:08:02 2008
@@ -1014,7 +1014,7 @@
// If the leaf of the tree is a comparison, merge the condition into
// the caseblock.
- if ((isa<ICmpInst>(Cond) || isa<FCmpInst>(Cond)) &&
+ if (isa<CmpInst>(Cond) &&
// The operands of the cmp have to be in this block. We don't know
// how to export them from some other block. If this is the first block
// of the sequence, no exporting is needed.
More information about the llvm-commits
mailing list