aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-11 00:08:02 +0000
committerChris Lattner <sabre@nondot.org>2008-10-11 00:08:02 +0000
commit3c261016692314d907dbcdc70da1bf4a968436a9 (patch)
treeb9f56e0416d010d999044fb5f6f8b4ef0dd29d0f
parente397acce9db154d8355eb78e701622383f551074 (diff)
downloadexternal_llvm-3c261016692314d907dbcdc70da1bf4a968436a9.zip
external_llvm-3c261016692314d907dbcdc70da1bf4a968436a9.tar.gz
external_llvm-3c261016692314d907dbcdc70da1bf4a968436a9.tar.bz2
simplify comparison
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57371 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 76aecc3..d67f126 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -1014,7 +1014,7 @@ void SelectionDAGLowering::FindMergedConditions(Value *Cond,
// 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.