Re: [PATCH] tree-vrp: add "const" qualifier to various value_range pointers

2018-08-31 Thread Aldy Hernandez
On 08/30/2018 06:24 PM, David Malcolm wrote: Adding "const" to these indicates to both humans and the compiler in which direction information is intended to flow. For example, compare: extract_range_from_binary_expr_1, which takes two vr and modifies a third with: ranges_from_anti_range

Re: [PATCH] tree-vrp: add "const" qualifier to various value_range pointers

2018-08-30 Thread Jeff Law
On 08/30/2018 04:24 PM, David Malcolm wrote: > Adding "const" to these indicates to both humans and the compiler in which > direction information is intended to flow. For example, compare: > extract_range_from_binary_expr_1, which takes two vr and modifies a third > with: > ranges_from_anti_ra