[LLVMdev] Cloned Functions Are Not the Same

Rahman Lavaee r.lavaee at gmail.com
Mon Dec 1 20:15:52 PST 2014

I am trying to use CloneFunction to clone every IR function in a program,
give the cloned versions a prefix and call the clones from the original
functions (redirect the calls).

Surprisingly, I see that after the LTO optimizations, the number of machine
basic blocks in the two functions differ in some cases.

Is this reasonable at all, given that the two functions must be exactly the
same in the IR level.

Or it might happen because of the interprocedural optimizations?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141201/092fa79f/attachment.html>

More information about the llvm-dev mailing list