Displaying 2 results from an estimated 2 matches for "emmited_instruct".
2007 Aug 17
0
[LLVMdev] Changing basic blocks
Yup,
You are right. That exploded.
I missed some lines in between.
there was a .reserve(total) in the actual code.
But, there is some side effect I still could not find.
2007/8/16, Chris Lattner <sabre at nondot.org>:
>
> On Wed, 15 Aug 2007, [ISO-8859-1] Emílio Wuerges wrote:
> > --
> > int total = BB->size();
> > std::vector<MachineInstr*>
2007 Aug 16
2
[LLVMdev] Changing basic blocks
On Wed, 15 Aug 2007, [ISO-8859-1] Em�lio Wuerges wrote:
> --
> int total = BB->size();
> std::vector<MachineInstr*> positionmap(total);
> for (int i = 0; i< total; ++i)
> positionmap.push_back(BB->remove(BB->begin()));
> for(int i = 0; i< total; ++i)
> BB->push_back(positionmap[i]);
> --
This doesn't do what you think. This line: