better redundant compare elimination (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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]

This patch eliminates redundant compares when a label is only reached from a jump by setting CC status according to the instruction preceding the branch.

This has a very small effect on the code I tried it on. Is it worth installing?

Any other comments?

*** final.c 1998/08/26 08:11:20 1.55 --- final.c 1998/09/03 01:59:08 *************** final (first, file, optimize, prescan) *** 1970,1975 **** --- 1970,1990 ---- if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > max_line) max_line = NOTE_LINE_NUMBER (insn); }

*************** final_scan_insn (insn, file, optimize, p *** 2283,2289 **** --- 2298,2327 ---- ASM_OUTPUT_ALIGN (file, align); #endif }


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