Use the right induction variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97541 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-03-02 02:37:23 +00:00
parent c6d7ad3c7d
commit 6183fbd726

View File

@ -1680,8 +1680,8 @@ HandleMergeInputChains(SmallVectorImpl<SDNode*> &ChainNodesMatched,
// that are not part of the pattern we're matching.
for (unsigned op = 0, e = N->getNumOperands(); op != e; ++op) {
if (!std::count(ChainNodesMatched.begin(), ChainNodesMatched.end(),
N->getOperand(i).getNode()))
InputChains.push_back(N->getOperand(i));
N->getOperand(op).getNode()))
InputChains.push_back(N->getOperand(op));
}
}