This patch adds a call to opt-in to the optimization bisect mechanism into the only Mips-specific pass that I was confident could be safely skipped.
I selected the pass to be skipped based on the fact that it was not added at CodeGenOpt::None in MipsTargetMachine.cpp. Based on that criteria, I did not add opt-in calls to the following passes:
Mips16HardFloat
MipsConstantIslands
MipsHazardSchedule
MipsModuleDAGToDAGISel
MipsLongBranch
MipsOs16
Filler (delay slot filler)
During the original opt bisect code review there was speculation that MipsOs16 might be skippable, but since it isn't omitted for CodeGenOpt::None I decided to leave it alone for now.
Note that the call to skipFunction() will also check for the "optnone" function attribute, so this can theoretically result in passes being skipped even when optimization bisect is not being done. However, I believe that any pass that can be safely skipped should be skipped for functions with the optnone attribute.