]> granicus.if.org Git - llvm/commit
[MIR] Skip hoisting to basic block which may throw exception or return
authorAnton Afanasyev <anton.a.afanasyev@gmail.com>
Wed, 12 Jun 2019 13:51:44 +0000 (13:51 +0000)
committerAnton Afanasyev <anton.a.afanasyev@gmail.com>
Wed, 12 Jun 2019 13:51:44 +0000 (13:51 +0000)
commit5ea18e1c35caa0275c21f595e779c096c24c3a11
tree6db6482e46d92b6cfe45bba7b6c44d8fdf2312a1
parent279b044b9bbd7b1d45683b6b7825fd93d81ed346
[MIR] Skip hoisting to basic block which may throw exception or return

Summary:
Fix hoisting to basic block which are not legal for hoisting cause
it can be terminated by exception or it is return block.

Reviewers: john.brawn, RKSimon, MatzeB

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63148

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/AArch64/machine_cse_illegal_hoist.ll [new file with mode: 0644]