Commit e145f958 authored by Paul's avatar Paul
Browse files

Skip literals

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