Skip to content
Snippets Groups Projects
Commit 5976e643 authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

re PR rtl-optimization/17581 (Long long arithmetic fails inside a switch/case...

re PR rtl-optimization/17581 (Long long arithmetic fails inside a switch/case statement when compiled with -O2)


	PR rtl-optimization/17581
	* cselib.c (cselib_process_insn): The last instruction of a libcall
	block, with the REG_RETVAL note, should be considered in the libcall.
	* gcse.c (do_local_cprop): Allow constants to be propagated outside
	of libcall blocks.
	(adjust_libcall_notes): Use simplify_replace_rtx instead of
	replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.

	* gcc.dg/pr17581-1.c: New test case.

From-SVN: r89873
parent 8b5a12da
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment