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
{
for(auto ins : iterator_for(p))
{
// skip instruction with no input
if (ins->inputs().empty())
continue;
if(ins->name() == "load")
continue;
......
......@@ -12,7 +12,6 @@ namespace gpu {
struct adjust_allocation
{
context* ctx = nullptr;
std::string name() const { return "gpu::adjust_allocation"; }
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