"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "8186ebca4337925e819c3be6fcce742b9cd190d1"
Commit e145f958 authored by Paul's avatar Paul
Browse files

Skip literals

parent 580cf447
......@@ -28,7 +28,7 @@ struct match_const_add
void constant_propagate::apply(program& p) const
{
fix([&](auto self, auto ins) {
if (not ins->get_shape().broadcasted())
if (not ins->get_shape().broadcasted() and ins->name() != "@literal")
{
auto r = ins->eval();
if (not r.empty())
......
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