Skip to content
Snippets Groups Projects
Commit 2dd4eb15 authored by Richard Biener's avatar Richard Biener Committed by Richard Biener
Browse files

tree-optimization/118269 - SLP reduction chain and early breaks

When we create the SLP reduction chain epilogue for the PHIs for
the early exit we fail to properly classify the reduction as SLP
reduction chain.  The following fixes the corresponding checks.

	PR tree-optimization/118269
	* tree-vect-loop.cc (vect_create_epilog_for_reduction):
	Use the correct stmt for the REDUC_GROUP_FIRST_ELEMENT lookup.

	* gcc.dg/vect/vect-early-break_131-pr118269.c: New testcase.
parent 42b24557
No related branches found
No related tags found
Loading
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