https://llvm.org/bugs/show_bug.cgi?id=24065
Pedro Ferreira <pedro.ferre...@imgtec.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from Pedro Ferreira <pedro.ferre...@imgtec.com> --- (In reply to comment #2) > Nicolas, I think that this is actually intended behavior. The map should > only be used once per cloning of a given basic block, so the find() should > actually always return VMap.end(). When it doesn't it means that you passed > in an already used VMap, which cloned this basic block already. Even if you > were reusing VMap, the code as committed would retain the proper mapping of > existing instructions in a basic block to the newly cloned equivalents > (rather than referring to a prior cloning of the block). I'm confused. By code inspection, the VMap is per function cloning, not per block. In any case, thank you for your reply. I just think this peculiarity should be documented (unless I missed it), as I was expecting to be able to arbitrarily replace instructions of the cloned function though the VMap. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs