simplify comparison

llvm-svn: 57371
This commit is contained in:
Chris Lattner 2008-10-11 00:08:02 +00:00
parent 05b54c2af4
commit fb1f4a1329
1 changed files with 1 additions and 1 deletions

View File

@ -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.