This is the mail archive of the gcc-cvs@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]

r278004 - in /trunk/gcc: ChangeLog gimple-match...


Author: jakub
Date: Sat Nov  9 17:09:44 2019
New Revision: 278004

URL: https://gcc.gnu.org/viewcvs?rev=278004&root=gcc&view=rev
Log:
	PR tree-optimization/92401
	* gimple-match-head.c (gimple_resimplify1): Call const_unop only
	if res_op->code is an expression with code length 1.
	* gimple-match-head.c (gimple_resimplify2): Call const_binop only
	if res_op->code is an expression with code length 2.
	* gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
	if res_op->code is an expression with code length 3.

	* g++.dg/opt/pr92401.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr92401.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-match-head.c
    trunk/gcc/testsuite/ChangeLog


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