We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7dc836 commit 5eed019Copy full SHA for 5eed019
llvm/utils/TableGen/DAGISelMatcherOpt.cpp
@@ -306,13 +306,8 @@ static void FactorScope(std::unique_ptr<Matcher> &MatcherPtr) {
306
307
// If we removed any equal matchers, we may need to slide the rest of the
308
// elements down for the next iteration of the outer loop.
309
- if (J != K) {
310
- while (J != E)
311
- *K++ = *J++;
312
-
313
- // Update end pointer for outer loop.
314
- E = K;
315
- }
+ if (J != K)
+ E = std::copy(J, E, K);
316
317
// If we only found one option starting with this matcher, no factoring is
318
// possible. Put the Matcher back in OptionsToMatch.
0 commit comments