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: tree-ssa: a weird (mis)optimization


On Nov 30, 2004, at 11:07, Andrew Haley wrote:
The problem here is that the line

<tmp>_4 = x_3->length;

has disappeared.  This should not have happened, because the operation
should have may_trap_p() set -- we're deleting a trapping instruction.

Does Java require a trap here, even if the result is not needed and the entire expression could otherwise be deleted? For other languages such as C and Ada, it is fine to delete the instruction, even if it would be trapping.

If Java prevents such removal, we should find a way to express
that so other languages don't lose the optimization.

-Geert


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