[LLVMdev] Cloned Functions Are Not the Same

Rahman Lavaee
Tue, 02 Dec 2014 04:15:52 -0000

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?

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