Displaying 1 result from an estimated 1 matches for "__relevant".
2016 Oct 26
0
How does one reduce a function CFG to its entry block?
...terminator, etc.
This does have the desired effect, but since I have no prior experience modifying LLVM, I am not sure if this is safe/legitimate or if my approach is flawed.
[ I am also able to achieve this by substituting the original terminator to the entry block by a: br i1 true, label %__RELEVANT, %__DISCARD_REST_OF_OLD_BODY
and have the code-gen prepare step eliminate the (made) unreachable rest of the old body so that only the original entry block with an unconditional branch to other relevant code that I add, remains; as intended. However, I want to not rely on the change happeni...