[AutoScheduler] Skip useless calls to RewriteLayout (#6993)
[AutoScheduler] Skip useless calls to RewriteLayout (#6993)

* [AutoScheduler] Skip useless calls of RewriteLayout

* fix lint

* fix lint
Laurawly/tvm-1,Laurawly/tvm-1,Laurawly/tvm-1,dmlc/tvm,dmlc/tvm,Laurawly/tvm-1,dmlc/tvm,Laurawly/tvm-1,dmlc/tvm,dmlc/tvm,Laurawly/tvm-1,Laurawly/tvm-1,dmlc/tvm,Laurawly/tvm-1,dmlc/tvm,Laurawly/tvm-1,Laurawly/tvm-1,dmlc/tvm,dmlc/tvm