[all-commits] [llvm/llvm-project] c78640: [TailDuplicator] Fix merging block with terminator
Sebastian Neubauer via All-commits
all-commits at lists.llvm.org
Fri Oct 29 01:53:09 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c78640ee6a649af48745997253791d95de082eda
https://github.com/llvm/llvm-project/commit/c78640ee6a649af48745997253791d95de082eda
Author: Neubauer, Sebastian <Sebastian.Neubauer at amd.com>
Date: 2021-10-29 (Fri, 29 Oct 2021)
Changed paths:
M llvm/lib/CodeGen/TailDuplicator.cpp
A llvm/test/CodeGen/AMDGPU/early-tailduplicator-terminator.mir
Log Message:
-----------
[TailDuplicator] Fix merging block with terminator
The TailDuplicator merged two blocks, even if the first one ended with
a terminator, resulting in invalid MIR, where a terminator is in the
middle of a block.
Abort merging if the first block ends with a terminator.
Differential Revision: https://reviews.llvm.org/D112226
More information about the All-commits
mailing list