[LLVMdev] BlockFrequencyImpl asserts on multiple edges between same MBBs with different weights in LLVM 3.2

Stefan Hepp stefan at stefant.org
Thu Jan 24 07:15:21 PST 2013


Hi,


On 01/23/2013 11:30 PM, Jakob Stoklund Olesen wrote:
> If you can find the place that creates the duplicate MBB edge, that would be great.
>

Found it :) It happens in lib/CodeGen/IfConversion.cpp at the very end 
in MergeBlocks. I attached a small patch that should resolve that issue. 
Our tests now compile sucessfully even without my previous patch.

regards,
  Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Bugfix-to-avoid-creating-duplicate-edges-in-if-conve.patch
Type: text/x-patch
Size: 822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130124/480b5b8a/attachment.bin>


More information about the llvm-dev mailing list