mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
[ARM64,C++11]: More range-based loop simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fb4b420326
commit
098f42dbc7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user