| 60 | } |
| 61 | |
| 62 | static argument as_packed(const argument& c) |
| 63 | { |
| 64 | if(c.get_shape().packed()) |
| 65 | return c; |
| 66 | auto s = c.get_shape().with_lens(c.get_shape().lens()); |
| 67 | argument result; |
| 68 | c.visit([&](auto x) { result = literal{s, x.begin(), x.end()}.get_argument(); }); |
| 69 | return result; |
| 70 | } |
| 71 | |
| 72 | void propagate_constant::apply(module& m) const |
| 73 | { |