Skip to content

Commit

Permalink
Move SwitchMethodPartitioning
Browse files Browse the repository at this point in the history
Summary:
SwitchMethodPartitioning was moved from its optimization to open source since it was touted as a general purpose utility. SwitchEquivFinder came later and is better at handling such jobs, and in the dependent diffs SwitchMethodPartitioning became just a holder for SwitchEquivFinder results that is catered to its caller.

I see no value in having SwitchMethodPartitioning as a general purpose thing, move it to its use and further specialize it to do that task. Anything that wanted to use its functionality should be using SwitchEquivFinder anyways.

Reviewed By: thezhangwei

Differential Revision: D52213332

fbshipit-source-id: d198909c168431c2803ea89f3e163223a95b1b56
  • Loading branch information
wsanville authored and facebook-github-bot committed Dec 15, 2023
1 parent 1a8a348 commit a7a1c69
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 246 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ libredex_la_SOURCES = \
service/shrinker/Shrinker.cpp \
service/switch-dispatch/SwitchDispatch.cpp \
service/switch-partitioning/SwitchEquivFinder.cpp \
service/switch-partitioning/SwitchMethodPartitioning.cpp \
service/type-analysis/GlobalTypeAnalyzer.cpp \
service/type-analysis/LocalTypeAnalyzer.cpp \
service/type-analysis/WholeProgramState.cpp \
Expand Down
105 changes: 0 additions & 105 deletions service/switch-partitioning/SwitchMethodPartitioning.cpp

This file was deleted.

71 changes: 0 additions & 71 deletions service/switch-partitioning/SwitchMethodPartitioning.h

This file was deleted.

4 changes: 0 additions & 4 deletions test/unit/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ check_PROGRAMS = \
strip_debug_info_test \
switch_dispatch_test \
switch_equiv_test \
switch_partitioning_test \
timer_test \
trace_multithreading_test \
true_virtuals_test \
Expand Down Expand Up @@ -430,8 +429,6 @@ switch_dispatch_test_SOURCES = SwitchDispatchTest.cpp
switch_equiv_test_SOURCES = SwitchEquivFinderTest.cpp
switch_equiv_test_LDADD = $(COMMON_MOCK_TEST_LIBS)

switch_partitioning_test_SOURCES = SwitchPartitioningTest.cpp

# throw_propagation_test_SOURCES = ThrowPropagationTest.cpp
# throw_propagation_test_LDADD = $(COMMON_MOCK_TEST_LIBS)

Expand Down Expand Up @@ -591,7 +588,6 @@ TESTS = \
strip_debug_info_test \
switch_dispatch_test \
switch_equiv_test \
switch_partitioning_test \
timer_test \
trace_multithreading_test \
true_virtuals_test \
Expand Down
65 changes: 0 additions & 65 deletions test/unit/SwitchPartitioningTest.cpp

This file was deleted.

0 comments on commit a7a1c69

Please sign in to comment.