jcf94 commented on a change in pull request #6107: URL: https://github.com/apache/incubator-tvm/pull/6107#discussion_r459166066
########## File path: src/auto_scheduler/transform_step.cc ########## @@ -923,5 +958,275 @@ String ComputeRootStepNode::PrintAsPythonAPI(Array<te::Stage>* stages, return ss.str(); } +/********** Primitives adding new stages **********/ + +// Common part for steps that add new stages +// (e.g. CacheReadStep, CacheWriteStep, RfactorStep) +void AddStageModificationSteps(int step_id, const Array<Step>& transform_steps, + Array<Step>* replay_steps) { Review comment: Yes, and the Rfactor will involve more complicated check. I have a TODO hint behind. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org