On Tue, Apr 18, 2017 at 12:43 PM, Bin Cheng <[email protected]> wrote:
> Hi,
> This patch adds three simple interfaces for tree affine which will be used in
> cost computation later.
>
> Is it OK?
+static inline tree
+aff_combination_type (aff_tree *aff)
misses a function comment. Please do not introduce new 'static inline'
function in headers but instead use plain 'inline'.
+/* Return true if AFF is simple enough. */
+static inline bool
+aff_combination_simple_p (aff_tree *aff)
+{
what is "simple"? Based on that find a better name.
"singleton"? But aff_combination_const_p isn't
simple_p (for whatever reason).
Richard.
> Thanks,
> bin
> 2017-04-11 Bin Cheng <[email protected]>
>
> * tree-affine.h (aff_combination_type): New interface.
> (aff_combination_const_p, aff_combination_simple_p): New interfaces.