diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-11-15 00:02:24 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-11-15 00:02:24 +0000 |
commit | ddb039a199a520843388327f3e112469be9c4d8f (patch) | |
tree | 76e2ca4a665b4c602a8891633bb940db23281a8a | |
parent | 1b19549b13c0f2cb96afcacab060be2f1f78ea89 (diff) | |
download | bcm5719-llvm-ddb039a199a520843388327f3e112469be9c4d8f.tar.gz bcm5719-llvm-ddb039a199a520843388327f3e112469be9c4d8f.zip |
[MachineOutliner][NFC] Check if CandidatesForRepeatedSeq < 2
There's no reason to call getOutliningCandidateInfo with a single candidate.
llvm-svn: 346913
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 49d0893afd7..7c58bd7fac8 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -1123,7 +1123,7 @@ unsigned MachineOutliner::findCandidates( // We've found something we might want to outline. // Create an OutlinedFunction to store it and check if it'd be beneficial // to outline. - if (CandidatesForRepeatedSeq.empty()) + if (CandidatesForRepeatedSeq.size() < 2) continue; // Arbitrarily choose a TII from the first candidate. |