On Tue, Jan 10, 2012 at 12:31 PM, Revital1 Eres <e...@il.ibm.com> wrote: > > Hello, > > The patch below fixes ICE reported in PR51794. > It avoids creating DDG edges for register uses of class DF_REF_ARTIFICIAL > as > the latter does not have real instructions for them and thus calling > BLOCK_FOR_INSN fails. > > Tested and bootstrap on ppc64-redhat-linux, enabling SMS on loops with SC > 1. > > OK for mainline? >
Yes, this is ok. Thanks, Ayal. > Thanks, > Revital > > Chanelog: > > PR rtl-optimization/51794 > * ddg.c (add_cross_iteration_register_deps): Avoid > creating edges for uses of class DF_REF_ARTIFICIAL. > > testsuite/ > PR rtl-optimization/51794 > * gcc.dg/sms-12.c: New test. > > (See attached file: patch_fix_pr51794.txt)