This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Handle if (var) for jump threading


On Thu, Jan 15, 2004 at 11:12:08PM -0700, law@redhat.com wrote:
> ! 	      set_value_for (var, boolean_true_node, const_and_copies);

Really?  Without checking to see that var is in fact boolean typed,
I'd expect this to go in nonzero_vars.

I do agree that we shouldn't be omitting the relational for
non-boolean variables, but I wouldn't feel comfortable assuming
that without a check in verify_stmt.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]