Hello, I wrote a pass which randomizes basic blocks and insert new block.But when i run another pass over it which simply lists all basic blocks I don't get to see the changes.The bytecode file is not changed.Why is that ? Thanks Tanu --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20050309/120f7767/attachment.html>
On Wed, 9 Mar 2005, Tanu Sharma wrote:> I wrote a pass which randomizes basic blocks and insert new block.But > when i run another pass over it which simply lists all basic blocks I > don't get to see the changes.The bytecode file is not changed.Why is > that ?Maybe your random number generator sucks? :-) Can you tell me exactly what options your using to run your pass? I assume you're running it with 'opt' like this? opt in.bc -randomize | llvm-dis ? -Chris -- nondot.org/sabre llvm.cs.uiuc.edu