"Mohamed Shafi" <[EMAIL PROTECTED]> writes: > I got few doubts regarding the way in which scheduling works in gcc 4.1.2 > > 1. Will barrier insns gets scheduled along with other instructions?
The scheduler works over regions. It doesn't look at barriers. > 2. When there is an unconditional jump in the instruction list, a > barrier instruction gets emitted after the unconditional jump as the > last instruction. Will this be regarded as an instruction when > counting the number of instructions in a region for scheduling > purposes? It shouldn't. > 3. After the end of scheduling a region can barrier remain as the last > instruction in the ready list unscheduled? Or in other words can ready > list be 'non-empty' after scheduling a region? As far as I know barriers won't get onto the ready list. If you see otherwise when running the compiler, then I am wrong. Ian