mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Change a loop in LoopInfo to foreach. NFC
llvm-svn: 237224
This commit is contained in:
parent
400d94bb73
commit
40fc512802
@ -65,8 +65,8 @@ bool Loop::isLoopInvariant(const Value *V) const {
|
||||
/// hasLoopInvariantOperands - Return true if all the operands of the
|
||||
/// specified instruction are loop invariant.
|
||||
bool Loop::hasLoopInvariantOperands(const Instruction *I) const {
|
||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
|
||||
if (!isLoopInvariant(I->getOperand(i)))
|
||||
for (auto &Op : I->operands())
|
||||
if (!isLoopInvariant(Op))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user