[llvm-dev] Splitting BB pre SelectionDAG
Matt Arsenault via llvm-dev
llvm-dev at lists.llvm.org
Sun Jan 21 09:40:58 PST 2018
> On Jan 21, 2018, at 11:33, Liad Mordekoviz via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> Before going said path, I was wondering if there is some way to split the BB before the SelectionDAG is generated, this way the call instruction would be last in the SelectionDAG would be last and won't get deleted during the combining stage.
You can’t/shouldn’t do this before SelectionDAG, since an operation could be legalized using a call when there was no call present in the original IR. Additionally, you would still need to separate the code you emit for the call setup sequence.
More information about the llvm-dev