[PATCH] D30438: SplitKit: Correctly implement partial copies
Krzysztof Parzyszek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 06:24:07 PST 2017
kparzysz added inline comments.
================
Comment at: lib/CodeGen/SplitKit.cpp:551
+ LaneMask & ~(TRI.getSubRegIndexLaneMask(BestCover));
+ while (LanesLeft.any()) {
+ unsigned BestIdx = 0;
----------------
Is there any guarantee that this loop will actually terminate? In other words, do we know that the set PossibleIndexes covers the lanes completely?
================
Comment at: lib/CodeGen/SplitKit.cpp:572
+
+ if (BestIdx == 0)
+ report_fatal_error("Impossible to implement partial COPY");
----------------
Would it make sense to add `|| BestCover <= 0`?
Repository:
rL LLVM
https://reviews.llvm.org/D30438
More information about the llvm-commits
mailing list