<div dir="ltr"><div>Hi,<br></div>I am having a problem while splitting the critical edges for carrying out path profiling. Actually, I am using the function 'SplitCriticalEdge' from the file 'BreakCriticalEdges.cpp' file but it just returns NULL pointer while splitting to  a landing pad block. Here is the comment from the code:<br><pre class=""> <span class="">// Splitting the critical edge to a landing pad block is non-trivial. Don't do</span>
<a name="l00140"></a>00140   <span class="">// it in this generic function.</span>
<a name="l00141"></a>00141   <span class="">if</span> (DestBB-><a class="" href="http://llvm.org/docs/doxygen/html/classllvm_1_1BasicBlock.html#a3075a9eef753018bed561df31f38dc23" title="Return true if this basic block is a landing pad.">isLandingPad</a>()) <span class="">return</span> <span class="">nullptr</span>;<br><br></pre><pre class="">Can anyone please provide a solution for breaking such critical edges?<br></pre><pre class="">Is there an implementation available for it?<br></pre><pre class=""><br><br><br></pre><pre class="">Thanks,<br></pre><pre class=""><br></pre></div>