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

[PATCH PR71503/PR71683]Fix ICE in tree-if-conv.c


Hi,
This is a simple patch fixing ICE in tree-if-conv.c.  Existing code does not setup a variable (cond) when predicate of basic block is true and it asserts on the variable.  Interesting thing is dead code is not cleaned up before ifcvt, but that's another story.
Bootstrap and test on x86_64.  Is it OK?

Thanks,
bin

2016-07-13  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/71503
	PR tree-optimization/71683
	* tree-if-conv.c (gen_phi_arg_condition): Set cond when predicate
	is true.

gcc/testsuite/ChangeLog
2016-07-13  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/71503
	PR tree-optimization/71683
	* gcc.dg/tree-ssa/ifc-pr71503.c: New test.
	* gcc.dg/tree-ssa/ifc-pr71683.c: New test.

Attachment: pr71503-20160710.txt
Description: pr71503-20160710.txt


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