Commit dcc2ffc
authored
[SYCL] Fix ModuleSplitterBase::totalSplits usage (#7485)
`ModuleSplitterBase::totalSplits` method returns the amount of
_remaining_ splits, i.e. every call to `ModuleSplitterBase::nextSplit`
decrements that value.
Fixed an incorrect initialization of `SplitByMode` and
`SplitByOptionalFeatures` variables by re-arranging code so we ask for
amount of splits _before_ we extract them. Previously, those two
variables were always initialized with `false`: from what I see in a
code this shouldn't have resulted in any major issues, but it caused a
problem in a downstream.
Additionally renamed `totalSplits` into `remainingSplits` to avoid
possible confusion in the future.1 parent ac2b203 commit dcc2ffc
File tree
2 files changed
+11
-8
lines changed- llvm/tools/sycl-post-link
2 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | | - | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
762 | 761 | | |
763 | 762 | | |
764 | 763 | | |
765 | 764 | | |
766 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
767 | 769 | | |
768 | 770 | | |
769 | 771 | | |
| |||
782 | 784 | | |
783 | 785 | | |
784 | 786 | | |
| 787 | + | |
| 788 | + | |
785 | 789 | | |
786 | 790 | | |
787 | 791 | | |
788 | | - | |
789 | | - | |
790 | 792 | | |
791 | 793 | | |
792 | | - | |
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
| |||
809 | 810 | | |
810 | 811 | | |
811 | 812 | | |
812 | | - | |
| 813 | + | |
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
| |||
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
830 | | - | |
| 831 | + | |
831 | 832 | | |
832 | 833 | | |
833 | 834 | | |
| |||
0 commit comments