Questions on schedule-insns and IA32

Jim Wilson wilson@specifixinc.com
Wed Sep 17 18:27:00 GMT 2003


Steve Snyder wrote:
> 1. In GCC v3.2.x is -fschedule-insns enabled by -O2 or not?

Depends on the target.  For IA32, it is not enabled by default at -O2.

> 2. In GCC v3.2.x is -fschedule-insns known to cause problems 
> (mis-compilation or reduced performance) on IA32 or not?

It shouldn't cause mis-compilation.  However, because it isn't used by 
default, it gets little or no testing on IA32, and thus there is a small 
risk of latent bugs.

Conventional wisdom is that it will reduce performance for targets with 
small register sets, such as IA32, because of register pressure issues. 
  However, this is very dependent on the testcase, as most compiler 
optimizations are.  Some will see reduced performance, and some will see 
increased performance.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list