<div><font>Hi:</font></div><div>I'm currently using 176249bd @ release/11.x for a downstream project that contains two passes.</div><div>The first pass randomly introduces DeadBasicBlocks (BasicBlocks that are not branched to in any way).</div><div>The second pass creates BlockAddress of all BasicBlocks in a function, put them into a GlobalVariable and patch br instructions to GEP+Load+indibr instructions.</div><div><br></div><div>When the first pass didn't create deadBasicBlock, the transformed IR fully works as intended, however if deadbasicblock is introduced, all elements in the GV created in the second pass references to the same address in the compiled object file.</div><div><br></div><div>Not sure if this is a bug on LLVM side or not</div><div><br></div><div><br></div><div><includetail><!--<![endif]--></includetail></div>