Commit 67bb451d by Bin Cheng Committed by Bin Cheng

* tree-predcom.c (determine_roots_comp): Skip trivial components.

From-SVN: r250665
parent 6c35e5b0
2017-07-28 Bin Cheng <bin.cheng@arm.com>
* tree-predcom.c (determine_roots_comp): Skip trivial components.
2017-07-28 Richard Biener <rguenther@suse.de>
* match.pd: Remove superfluous :c.
......
......@@ -1227,8 +1227,11 @@ determine_roots_comp (struct loop *loop,
return;
}
comp->refs.qsort (order_drefs);
/* Trivial component. */
if (comp->refs.length () <= 1)
return;
comp->refs.qsort (order_drefs);
FOR_EACH_VEC_ELT (comp->refs, i, a)
{
if (!chain || DR_IS_WRITE (a->ref)
......
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