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] Avoiding useless jumps


Please don't check IS_EMPTY_STMT unless you are specifically interested in
the tree structure.  Check TREE_SIDE_EFFECTS instead.

It also might make sense to check for VOID_TYPE and optimize accordingly.
If we're not interested in the value, we should be able to just use the
stmt.c code directly.

Jason


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