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.
This was causing optnone-llc.ll to fail, so I'm taking it out, but it seems to me that this pass is definitely skippable. The optnone-llc.ll test fails because this pass is run at -O0. It seems to me that it shouldn't be, but I removed this to get the buildbot clean, since that seems like a higher priority.