Commit a0aeb7fb by Joern Rennecke Committed by Joern Rennecke

tree-vect-stmts.c (vectorizable_comparison): Swap operands only once.

	* tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
	Swap operands only once.

From-SVN: r273316
parent 4b1a1d98
2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
* tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
Swap operands only once.
2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
* cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
......
......@@ -10369,7 +10369,7 @@ vectorizable_comparison (stmt_vec_info stmt_info, gimple_stmt_iterator *gsi,
if (!slp_node)
{
if (swap_p)
if (swap_p && j == 0)
std::swap (vec_rhs1, vec_rhs2);
vec_oprnds0.quick_push (vec_rhs1);
vec_oprnds1.quick_push (vec_rhs2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment