search for: branch_opt

Displaying 2 results from an estimated 2 matches for "branch_opt".

2007 Jun 13
1
[LLVMdev] Address of label
...witch in order to find the right target. I want to know if there is another way to do this, for instance, by accessing the address of label and to branch directly to it? In order to optimize the program (to decrease the cost of branch dispatch), I use the following command line: llvmc -O5 -o branch_opt branch.bc llc -march=arm -mcpu=arm1136j-s -mattr=+v6 -f -o branch_opt.s branch_opt.bc In the optimized program (branch_opt.arm), I saw that all branches are not suppressed. I want to know, if it is possible to suppress the remaining useless branches? if yes, how ? Thanks in advance....
2007 Jun 13
0
[LLVMdev] Address of label
...each label and use a switch in order to find the right > target. Right. > I want to know if there is another way to do this, for instance, by > accessing the address of label and to branch directly to it? As it seems to me, no (I can be mistaken, though). > In the optimized program (branch_opt.arm), I saw that all branches > are not suppressed. > I want to know, if it is possible to suppress the remaining useless > branches? if yes, how ? Your switch is too small to emit jump table. LLVM uses some heuristics in order to emit switches in more-or-less optimal way. The lower numbe...