================
@@ -3244,6 +3244,21 @@ static bool hasIGLPInstrs(ScheduleDAGInstrs *DAG) {
});
}
+static bool hasIGLPOpt(ScheduleDAGInstrs *DAG, int64_t StrategyImm) {
+ return any_of(*DAG, [StrategyImm](MachineBasicBlock::iterator MI) {
+ return MI->getOpcode() == AMDGPU::IGLP_OPT && MI->getNumOperands() >= 1 &&
----------------
hidekisaito wrote:
I'll drop NumOperand and isImm checks in the next push. After opcode check,
they seem redundant.
https://github.com/llvm/llvm-project/pull/190916
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits