Commit 62bc59f3 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fix review comments.

parent 29865b9a
...@@ -12,6 +12,10 @@ void adjust_allocation::apply(program& p) const ...@@ -12,6 +12,10 @@ void adjust_allocation::apply(program& p) const
{ {
for(auto ins : iterator_for(p)) for(auto ins : iterator_for(p))
{ {
// skip instruction with no input
if (ins->inputs().empty())
continue;
if(ins->name() == "load") if(ins->name() == "load")
continue; continue;
......
...@@ -12,7 +12,6 @@ namespace gpu { ...@@ -12,7 +12,6 @@ namespace gpu {
struct adjust_allocation struct adjust_allocation
{ {
context* ctx = nullptr;
std::string name() const { return "gpu::adjust_allocation"; } std::string name() const { return "gpu::adjust_allocation"; }
void apply(program& p) const; void apply(program& p) const;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment