• Brandon T. Willard's avatar
    Refactor local_add_specialize and test_local_add_specialize · 3e00b5cd
    Brandon T. Willard 提交于
    These changes "flatten" the nested conditions that lead to the replacement
    logic.
    
    They also clarify the tests that are labeled as being for
    `local_add_specialize`, which actually aren't.  Also, the unrelated tests
    implicitly relied on the canonicalizations built into
    `get_scalar_constant_value`; now, the actual canonicalizations are required in
    anticipation of `get_scalar_constant_value`'s replacement.
    3e00b5cd
test_math_opt.py 158.5 KB