[ARM64,C++11]: More range-based loop simplification.

llvm-svn: 206006
This commit is contained in:
Jim Grosbach 2014-04-11 00:27:19 +00:00
parent e2e1c35566
commit d3249d0923
1 changed files with 2 additions and 3 deletions

View File

@ -7322,9 +7322,8 @@ bool ARM64TargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const {
return false; return false;
bool HasRet = false; bool HasRet = false;
for (SDNode::use_iterator UI = Copy->use_begin(), UE = Copy->use_end(); for (SDNode *Node : Copy->uses()) {
UI != UE; ++UI) { if (Node->getOpcode() != ARM64ISD::RET_FLAG)
if (UI->getOpcode() != ARM64ISD::RET_FLAG)
return false; return false;
HasRet = true; HasRet = true;
} }