Improve PR33244 somewhat

H.J. Lu hjl.tools@gmail.com
Wed Jan 12 14:36:00 GMT 2011


On Thu, Nov 18, 2010 at 9:24 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Sep 7, 2010 at 5:32 AM, Michael Matz <matz@suse.de> wrote:
>> Hello,
>>
>> this patch fixes one problem of those preventing to vectorize the testcase
>> in PR33244.  Namely that code sinking sometimes fills loop latch blocks
>> preventing later vectorization.  Changed by ensuring that we don't sink
>> anything into a latch block that is still empty.
>>
>> The testcase I add is a modified version of the testcase in the PR because
>> of unrelated problems also preventing vectorization (inlining needs to
>> happen, a library with vectorized logf needs to be available, and loop
>> interchange needs to work).
>>
>> Regstrapping on x86_64-linux (all default languages) in progress.  Okay?
>>
>>
>> Ciao,
>> Michael.
>> --
>>        PR tree-optimization/33244
>>        * tree-ssa-sink.c (statement_sink_location): Don't sink into
>>        empty loop latches.
>>
>
> This caused:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46077
>

This also caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47265


-- 
H.J.



More information about the Gcc-patches mailing list