This patch adds calls to AMDGPU-specific passes that can be safely skipped to opt-in to the optimization bisect mechanism.
The following passes are not calling the opt-in function:
AMDGPUAlwaysInline
AMDGPUAnnotateKernelFeatures
AMDGPUCFGStructurizer
AMDGPUOpenCLImageTypeLoweringPass
R600ControlFlowFinalizer
R600EmitClauseMarkers
R600ExpandSpecialInstrsPass
R600Packetizer
R600TextureIntrinsicsReplacer
SIAnnotateControlFlow
SIFixControlFlowLiveIntervals
SIFixSGPRCopies
SIInsertNops
SIInsertWaits
SILowerControlFlow
SILowerI1Copies
SITypeRewriter
SIWholeQuadMode
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. Where the OptNone function attribute was being checked, it is now being checked within the call to skipFunction().