[llvm] r206006 - [ARM64, C++11]: More range-based loop simplification.
Jim Grosbach
grosbach at apple.com
Thu Apr 10 17:27:20 PDT 2014
Author: grosbach
Date: Thu Apr 10 19:27:19 2014
New Revision: 206006
URL: http://llvm.org/viewvc/llvm-project?rev=206006&view=rev
Log:
[ARM64,C++11]: More range-based loop simplification.
Modified:
llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp?rev=206006&r1=206005&r2=206006&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp Thu Apr 10 19:27:19 2014
@@ -7322,9 +7322,8 @@ bool ARM64TargetLowering::isUsedByReturn
return false;
bool HasRet = false;
- for (SDNode::use_iterator UI = Copy->use_begin(), UE = Copy->use_end();
- UI != UE; ++UI) {
- if (UI->getOpcode() != ARM64ISD::RET_FLAG)
+ for (SDNode *Node : Copy->uses()) {
+ if (Node->getOpcode() != ARM64ISD::RET_FLAG)
return false;
HasRet = true;
}
More information about the llvm-commits
mailing list