[Polly] Added dedicated test for working -O3 pipeline.

Test the NewPM as well as the legacy PM.

GitOrigin-RevId: d50f92a4f0bcd2a28ac0e4ad9942998b144cf48d
1 file changed