Summary: The simplifications done by `simplify_shallow` are all taken care of by `eval_const_shallow` as well, they just also happen to help when not *all* of the term is a constant. However, they might be less precise/efficient than in the constant case, in particular in the next diff that translates `x << c` into `x * 2^c` when `c` is constant. Reviewed By: skcho Differential Revision: D27464805 fbshipit-source-id: 452bc6ab1master
parent
d1b3e56574
commit
8e9bc54c4a
Loading…
Reference in new issue