]> gcc.gnu.org Git - gcc.git/commit
Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'.
authorPer Bothner <bothner@gcc.gnu.org>
Tue, 2 Feb 1999 12:20:36 +0000 (04:20 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Tue, 2 Feb 1999 12:20:36 +0000 (04:20 -0800)
commitbb6e881c9a2f7b25b7881561de138afa6e44b59a
treec3a911fc75011cc37aa74034b4ae5ec82c54c0bf
parentbb31662fadb407a0b9ed2d44a8171d830a060b05
Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'.

a
Optimize: `return (a ? b : c)' as: `if (a) return b; else return c;'.
* jcf-write.c (generate_bytecode_return):  New function.
(generate_bytecode_insns):  Use it, for RETURN_EXPR.
* jcf-write.c (generate_bytecode_insns):  For REAL_CST that is 0 or 1,
generate special [fd]const_[01] instructions.
* jcf-parse.c (yyparse):  Don't emit_register_classes if -fsyntax-only.
* verify.c (verify_jvm_instructions):  Do INVALIDATE_PC after
handling OPCODE_lookupswitch or OPCODE_tableswitch.

From-SVN: r24971
gcc/java/jcf-write.c
This page took 0.060542 seconds and 5 git commands to generate.