This pass adds the skip check used for opt-bisect and function "optnone" attribute handling to some passes that previously lacked the check but appear to be skippable.
I am also adding a new case to the opt-bisect test that verifies no pass is skipped that is run at opt level zero.
There are some problems remaining with AMDGPU passes that will cause the new test to fail on those platforms. I intend to address those issues in a separate patch.