On Sep 26, 2024, at 11:47 AM, Alex Coplan <alex.cop...@arm.com> wrote:
> 
> In r15-3585-g9759f6299d9633cabac540e5c893341c708093ac I added a test which
> started failing on PowerPC.  The test checks that we unroll exactly one loop
> three times with the following:
> 
> // { dg-final { scan-ltrans-rtl-dump-times "Unrolled loop 3 times" 1 
> "loop2_unroll" } }
> 
> which passes on most targets.  However, on PowerPC, the loop in main
> gets unrolled too, causing the scan-ltrans-rtl-dump-times check to fail
> as the statement now appears twice in the dump.  I think the extra
> unrolling is due to different unrolling heuristics in the rs6000 port.
> 
> This patch therefore explicitly tries to block the unrolling in main with an
> appropriate #pragma.
> 
> I've checked that the test now passes on power (on cfarm29) and aarch64.  I 
> also
> checked that reverting the lto-streamer-{in,out}.cc changes still causes the
> test to fail (on aarch64).
> 
> OK for trunk?

Ok.

Reply via email to