which prevented setcc's from being folded into branches. It appears that
conditional branchinst's CC operand is actually operand(2), not operand(0)
as we might expect. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16859
91177308-0d34-0410-b5e6-
96231b3b80d8
(getClassB(SCI->getOperand(0)->getType()) != cLong ||
SCI->getOpcode() == Instruction::SetEQ ||
SCI->getOpcode() == Instruction::SetNE) &&
- User->getOperand(0) == V)
+ (isa<BranchInst>(User) || User->getOperand(0) == V))
return SCI;
}
return 0;