[llvm-dev] Splitting BB pre SelectionDAG

Liad Mordekoviz via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 21 08:33:55 PST 2018


Hi everyone,
I'm faily new to LLVM, I'm working on a new backend.

In my backend, one of the requirements is to split a BB on every call, I
considered putting some kind of pseudo instruction using the
TargetLowering::LowerCall function.

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.

Thanks in advance, Liad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180121/faec1422/attachment.html>


More information about the llvm-dev mailing list