This is the mail archive of the gcc@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: what optimizations are invalid in java?


>>>>> "Jan" == Jan Hubicka <jh@suse.cz> writes:

Jan> fold_const: We can remove dead parts of expresisons poossibly eliminating
Jan> trap.

Jan> Code not executed is unreachable, dead code is code executed but
Jan> with void results.  In fold const we can delete as dead for
Jan> instance (a/b)*0 that may trap in case b is 0.

Thanks.  In that case I think we can only remove dead code that is
known not to generate an exception.

Tom


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