help on - adding a new pass to gcc

2009-11-10 Thread ddmetro
Hi All, We are adding a new pass for - structural hazard optimization - in gcc. We have added a rtl_opt_pass variable(pass_sched3) declaration in tree-pass.h and defined the same in a new file - sched-by-category.c We then added a target in gcc/Makefile.in, as follows:

help on - instruction scheduling passes in gcc

2009-11-03 Thread ddmetro
Hi All, Our project is to optimize instruction scheduling in gcc by detecting structural hazards. We are trying to understand the two instruction scheduling passes(pass_sched and pass_sched2) and have the following doubts regarding the same. We are currently looking at schedule_insns()

help on - instruction scheduling passes in gcc

2009-11-03 Thread ddmetro
Hi All, Our project is to optimize instruction scheduling in gcc by detecting structural hazards. We are trying to understand the two instruction scheduling passes(pass_sched and pass_sched2) and have the following doubts regarding the same. We are currently looking at schedule_insns()

help on - instruction scheduling passes in gcc

2009-11-03 Thread ddmetro
Hi All, Our project is to optimize instruction scheduling in gcc by detecting structural hazards. We are trying to understand the two instruction scheduling passes(pass_sched and pass_sched2) and have the following doubts regarding the same. We are currently looking at schedule_insns()

help on - instruction scheduling passes in gcc

2009-11-03 Thread ddmetro
Hi All, Our project is to optimize instruction scheduling in gcc by detecting structural hazards. We are trying to understand the two instruction scheduling passes(pass_sched and pass_sched2) and have the following doubts regarding the same. We are currently looking at schedule_insns()

help on - writing a testcase to detect structural hazard in gcc

2009-10-28 Thread ddmetro
Hi All, Our project is to optimize instruction scheduling in gcc by detecting structural hazards. We looked at the current dfa implementation(gen-automata.c and insn-automata.c). We are trying to come up with a test case for the same, a scenario wherein one of the instructions is stalled

RE: got the .dfa output file in gcc

2009-10-03 Thread ddmetro
Hi All, Got the output i386.dfa file in the location - {$gcc_home}/host-i686-pc-linux-gnu/gcc. Followed 2 steps: 1. In the initiate_automaton_gen() function of 'genautomata.c', initialize the v_flag variable to 1 i.e., v_flag = 1; 2. Build target 'insn-automata.c'. -Dhiraj --

Re: how to get the .dfa output file in gcc

2009-10-03 Thread ddmetro
Hi All, Got the output i386.dfa file in the location - {$gcc_home}/host-i686-pc-linux-gnu/gcc. Followed 2 steps: 1. In the initiate_automaton_gen() function of 'genautomata.c', initialize the v_flag variable to 1 i.e., v_flag = 1; 2. Build target 'insn-automata.c'. -Dhiraj --

RE: help on - how to get the .dfa output file in gcc

2009-09-29 Thread ddmetro
Thanks Bingfeng. We are now facing the following problem: We are trying to get the .dfa output file, showing details about the automaton constructed. However we are unable to do so. We tried (a.)uncommenting - (automata_option v) - in ia64.md file (b.)adding v_flag = 1 in gen_automata_option()

help on - how to specify architecture information to gcc

2009-09-21 Thread ddmetro
Hi All, Our project is to optimize instruction scheduling in gcc. It requires us to specify architecture information (basically number of cycles per instruction, stall and branch delays) to gcc, to optimize structural hazard detection. Problem: Is there any specific format in which we