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

re PR tree-optimization/23452 (Optimizing CONJG_EXPR (a) * a)

	PR tree-optimization/23452
	* fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
	to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
	(fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
	complex values and with -ffast-math for FP complex values.

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

From-SVN: r114246
parent 606791f6
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