Don't use getNextOperandForReg().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Aug 2012 23:44:04 +0000 (23:44 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Aug 2012 23:44:04 +0000 (23:44 +0000)
commit978c1280a5ae3262fd872dacfab07610b250a235
treeffd1d897b80d156208a919188c505fe392d26547
parentf71bc7b26742424691f887d204fb80c09e7deba6
Don't use getNextOperandForReg().

This way of using getNextOperandForReg() was unlikely to work as
intended. We don't give any guarantees about the order of operands in
the use-def chains, so looking only at operands following a given
operand in the chain doesn't make sense.

llvm-svn: 161542
llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp