InstExpander::convertUIToFP32 did not set its insertion point
correctly and were thus adding instructions to a non-existing
BasicBlock.
Fix by ensuring that the insertion point is set to the right
instruction in the new block and allow the callers to continue from
where convertUIToFP32 left off.
This fixes #192 as that bug was due to an infinite loop caused by a corrupt block, (where half of the instructions had some other parent block) attempting to sink an instruction to the same block again and again.
InstExpander::convertUIToFP32 did not set its insertion point correctly and were thus adding instructions to a non-existing BasicBlock.
Fix by ensuring that the insertion point is set to the right instruction in the new block and allow the callers to continue from where convertUIToFP32 left off.
This fixes #192 as that bug was due to an infinite loop caused by a corrupt block, (where half of the instructions had some other parent block) attempting to sink an instruction to the same block again and again.