This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] [tuples] some aux functions
- From: Diego Novillo <dnovillo at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 Feb 2008 13:51:41 -0500
- Subject: Re: [patch] [tuples] some aux functions
- References: <38a0d8450802211002o2a1cce9g404330a2a24e0617@mail.gmail.com>
On 2/21/08 1:02 PM, Rafael Espindola wrote:
+/* Check if the conditional is of the form 'if (1 == 1)', 'if (0 == 0)',
s/the conditional/conditional statement GS/
+ 'if (1 != 0)' or 'if (0 != 1)' */
+
+static inline bool
+gimple_cond_true_p(const_gimple gs) {
Brace on next line.
Space after gimple_cond_true_p.
+ tree lhs = gimple_cond_lhs(gs);
+ tree rhs = gimple_cond_rhs(gs);
Space before '('.
+/* Check if the conditional is of the form 'if (1 != 1)', 'if (0 != 0)',
s/the conditional/conditional statement GS/
+ 'if (1 == 0)' or 'if (0 == 1)' */
+
+static inline bool
+gimple_cond_false_p(const_gimple gs) {
Brace on next line.
Space after gimple_cond_true_p.
+ tree lhs = gimple_cond_lhs(gs);
+ tree rhs = gimple_cond_rhs(gs);
Space before '('
+/* Check if the conditional is of the form 'if (var != 0)' or
s/the conditional/conditional statement GS/
OK with those changes. Thanks.
Diego.