[LLVM/CPU] Terminate basic block after "ret" instruction (#6036)
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 10 Jul 2020 22:36:17 +0000 (17:36 -0500)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2020 22:36:17 +0000 (15:36 -0700)
commitc9c77c6b76f7cff3bc6afbf9d3ef2200e3fdbb91
treef9c95cfc37c1294294d5c5bb035ae77d8af5a5a7
parent474d47234f8a2378f9135fa3200ca7ce75459889
[LLVM/CPU] Terminate basic block after "ret" instruction (#6036)

* [LLVM/CPU] Terminate basic block after "ret" instruction

"Ret" is a terminator in LLVM IR and there should be no instructions
in the basic block following it. When generating a "ret", end the
current block and start a new one.
src/target/llvm/codegen_cpu.cc