This patch adds calls to ARM-specific passes that can be safely skipped to opt-in to the optimization bisect mechanism.
I am not adding opt-in calls to the following passes, which appear to be required:
ARMConstantIslands
ARMExpandPseudo
Thumb2ITBlockPass
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.