On Tue, Sep 15, 2020 at 2:25 PM Feng Xue OS wrote:
>
> >> Add a rule (T)(A) +- (T)(B) -> (T)(A +- B), which works only when (A +- B)
> >> could be folded to a simple value. By this rule, a
> >> plusminus-mult-with-convert
> >> expression could be handed over to the rule (A * C) +- (B * C) -> (A +
>> Add a rule (T)(A) +- (T)(B) -> (T)(A +- B), which works only when (A +- B)
>> could be folded to a simple value. By this rule, a
>> plusminus-mult-with-convert
>> expression could be handed over to the rule (A * C) +- (B * C) -> (A +- B).
>
>Please use INTEGRAL_TYPE_P () instead of TREE_CODE ==
On Tue, Sep 15, 2020 at 12:14 PM Feng Xue OS
wrote:
>
> Add a rule (T)(A) +- (T)(B) -> (T)(A +- B), which works only when (A +- B)
> could be folded to a simple value. By this rule, a plusminus-mult-with-convert
> expression could be handed over to the rule (A * C) +- (B * C) -> (A +- B).
Please